@dnode/handler
Advanced tools
Comparing version 1.0.4 to 1.0.5
@@ -6,3 +6,3 @@ module.exports = handler => async (req, res, next) => { | ||
if (!res.headersSent) { | ||
const status = e.status || 500; | ||
const status = e.status || e.statusCode || 500; | ||
if (e.toString) { | ||
@@ -9,0 +9,0 @@ res.status(status).send(e.toString()); |
@@ -6,3 +6,3 @@ { | ||
"name": "@dnode/handler", | ||
"version": "1.0.4", | ||
"version": "1.0.5", | ||
"description": "", | ||
@@ -9,0 +9,0 @@ "repository": "sharaal/dnode", |
807