Oddbean new post about | logout
 nostr:npub1ku30mphs68tg30c4jj0d80g698resvue70hhrvnawxvdfaq4p0usadqwn9 the reason you cannot pass errors up through async function handlers is that each callback is a terminal error site -- if you passed it back up, you'd have to exit the event loop entirely to handle it. So you gotta handle it there. But you can just stick the error in a value and pass it to some shared error handling code that does the meaningful for your use-case