Comparing version 1.0.12 to 1.0.13
@@ -98,11 +98,17 @@ var objectUtils = require('./objectUtils'); | ||
try { | ||
res.writeHead(500); | ||
res.status(500); | ||
console.error('Route error at ' + req.url, er); | ||
if (console.isDebug) { | ||
res.write(er.stack); | ||
if (web.conf.handle500) { | ||
web.conf.handle500(er, req, res); | ||
} else { | ||
//show to end users | ||
res.write('An unexpected error has occurred.'); | ||
if (console.isDebug) { | ||
res.write(er.stack); | ||
} else { | ||
//show to end users | ||
res.write('An unexpected error has occurred.'); | ||
} | ||
res.end(); | ||
} | ||
res.end(); | ||
} catch (er) { | ||
@@ -109,0 +115,0 @@ console.error('Error sending 500', er, req.url); |
{ | ||
"name": "oils", | ||
"version": "1.0.12", | ||
"version": "1.0.13", | ||
"description": "A slightly opinionated web framework built on top of Express 4.", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
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
409817
2521