Skip to content

Commit

Permalink
Add req.url to notFound handler message (#105)
Browse files Browse the repository at this point in the history
  • Loading branch information
EirikFA authored and daffl committed Aug 21, 2018
1 parent 0f7b07c commit 57f4e11
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/errors/lib/not-found-handler.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@ const errors = require('./index');

module.exports = function () {
return function (req, res, next) {
next(new errors.NotFound('Page not found'));
next(new errors.NotFound('Page not found | Requested page/route: ' + req.url));
};
};

0 comments on commit 57f4e11

Please sign in to comment.