ericclemmons / polydev

Faster, route-centric development for Node.js apps with built-in Hot Module Replacement.
282 stars 6 forks source link

Errors in async routes don't throw/error #25

Closed ericclemmons closed 5 years ago

ericclemmons commented 5 years ago
module.exports = async (req, res) => {
  asdf
}

This error will never bubble up.

ericclemmons commented 5 years ago

https://strongloop.com/strongblog/async-error-handling-expressjs-es7-promises-generators/#usinges7asyncawait