Simple express monkey patch for async handlers support.
$ npm install @dvpnt/express-async-patch
require('@dvpnt/express-async-patch');
const express = require('express');
const app = express();
app.get('/', async () => {
await Promise.reject(new Error('async error'));
});
app.use((err, req, res, next) => {
console.log(err.message); // async error
res.json({error: err.message});
});