actual-server/util/error-middleware.js
2022-05-20 09:24:19 -04:00

6 lines
175 B
JavaScript

async function middleware(err, req, res) {
console.log('ERROR', err);
res.status(500).send({ status: 'error', reason: 'internal-error' });
}
module.exports = middleware;