Last active
November 24, 2021 01:25
-
-
Save Vehmloewff/775e44186cb2732523f1b0ecafbc9788 to your computer and use it in GitHub Desktop.
Errors thrown inside http.serve disappear
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { serve } from 'https://deno.land/[email protected]/http/mod.ts' | |
const listener = Deno.listen({ port: 3000 }) | |
await serve(listener, () => { | |
console.log('before throw') | |
throw new Error('whoa! this does not print') | |
console.log('after throw') | |
return new Response('hello world') | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment