Comparing version 0.3.0 to 0.3.1
{ | ||
"name": "res-error", | ||
"version": "0.3.0", | ||
"version": "0.3.1", | ||
"description": "Adds a super flexible res.error() method to express that logs an error and sends the correct JSON response to the client", | ||
@@ -5,0 +5,0 @@ "author": "Mike Marcacci <mike.marcacci@thecontrolgroup.com>", |
@@ -121,3 +121,3 @@ var util = require('util'); | ||
// send the response | ||
res.send(e.code, e.message); | ||
res.status(e.code).send(e.message); | ||
return e; | ||
@@ -124,0 +124,0 @@ }; |
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
5655