Took some code from Deno and packaged them so you don't have to copy paste them
Should
map errors correctly. See more in this
issue
.