express-async-errors
express-async-errors copied to clipboard
async/await support for ExpressJS
Should this package handles errors in production (builded project)? All my errors throwed with "npm run start" are not catched properly equals in dev
is this tool a replacement of this : ```js function asyncWrapper(fn) { return function (req, res, next) { fn(req, res, next).catch(next); }; } app.get('/route', asyncWrapper(async (req, res, next) => {...
I've changed one of the tests to match the same approach I'm using in my application but it's not being handled: ```javascript const multer = require('multer'); const storage = multer.diskStorage({...
Hi, I was surfing around the internet looking to a good request error-handler for my [Express app](https://github.com/trouchet/sappio). Your library popped up like a charm. I know about [Merror](https://www.npmjs.com/package/express-merror), which seemed...
Using the async handler with this lib leads to the following lint error as the return type of async handler is a `Promise` and the expected one is just a...
Refresh lockfiles - Add outdated.md (deps) Bump `eslint` + `config` + `plugin` to latest. Refresh `node_modules` & lock files. + fix lint warning and error. (deps) Bump `express` to `^4.17.1`...
This PR aims to address and close #28 Currently a WIP with the goal of preparing for the release of Express v5 which adds async error support to route/middleware handlers....
README.md proposes this handling function: ```ts app.use((err, req, res, next) => { if (err.message === 'access denied') { res.status(403); res.json({ error: err.message }); } next(err); }); ``` But what is...
Hey there! Wanted to give you some heads up that express v5 should be getting released sometime ~next month.~ Version 5 will support returning promises from route handlers. But there...