@azteam/express 1.2.414 → 1.2.415
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/Server.js +1 -1
- package/package.json +1 -1
- package/src/Server.js +1 -1
package/lib/Server.js
CHANGED
|
@@ -332,7 +332,7 @@ var Server = /*#__PURE__*/function () {
|
|
|
332
332
|
app.use(function () {
|
|
333
333
|
throw new _error.ErrorException(_error.NOT_FOUND);
|
|
334
334
|
});
|
|
335
|
-
app.use(function (err, req, res) {
|
|
335
|
+
app.use(function (err, req, res, next) {
|
|
336
336
|
var error = (0, _error.errorCatch)(err);
|
|
337
337
|
if (process.env.NODE_ENV === 'development') {
|
|
338
338
|
console.log(error.errors);
|
package/package.json
CHANGED
package/src/Server.js
CHANGED