@dnode/handler
Advanced tools
Comparing version 1.0.5 to 1.0.6
@@ -7,5 +7,3 @@ module.exports = handler => async (req, res, next) => { | ||
const status = e.status || e.statusCode || 500; | ||
if (e.toString) { | ||
res.status(status).send(e.toString()); | ||
} else if (e.message) { | ||
if (e.message) { | ||
res.status(status).send(e.message); | ||
@@ -12,0 +10,0 @@ } else { |
@@ -6,3 +6,3 @@ { | ||
"name": "@dnode/handler", | ||
"version": "1.0.5", | ||
"version": "1.0.6", | ||
"description": "", | ||
@@ -9,0 +9,0 @@ "repository": "sharaal/dnode", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
729
14