Skip to content

Ignore "Future Errors"

Choose a tag to compare

@blakeembrey blakeembrey released this 02 Aug 23:22
· 22 commits to master since this release

Changed

  • When an error is thrown and we're ahead of the current function in the stack, re-throw it
    • This can occur when an error is thrown from done() and our synchronous try..catch sees it
    • It could also be reproduced internally by getting into an inconsistent state - theoretically if a function did next(); throw new Error() it'd diverge and handle future functions, then catch and handle the error functions in the same stack (breaking user expectations)
  • Added debug for stderr logging
  • Add generics to type signatures for req, res, next