ultimate-express 2.0.16 → 2.0.17

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/router.js +2 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ultimate-express",
3
- "version": "2.0.16",
3
+ "version": "2.0.17",
4
4
  "description": "The Ultimate Express. Fastest http server with full Express compatibility, based on uWebSockets.",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
package/src/router.js CHANGED
@@ -350,10 +350,10 @@ module.exports = class Router extends EventEmitter {
350
350
 
351
351
  _handleError(err, handler, request, response) {
352
352
  if(handler) {
353
- return handler(err, request, response, () => {
353
+ return handler(err, request, response, (pass) => {
354
354
  delete request._error;
355
355
  delete request._errorKey;
356
- return request.next();
356
+ return request.next(pass);
357
357
  });
358
358
  }
359
359
  console.error(err);