Skip to content

Commit

Permalink
Added 404 path.
Browse files Browse the repository at this point in the history
  • Loading branch information
robgietema committed Nov 16, 2023
1 parent d5fd50c commit 1acba02
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,9 @@ map(routes, (route) => {

// If no redirect found
if (!redirect) {
throw new RequestException(404, { error: req.i18n('Not found.') });
throw new RequestException(404, {
error: req.i18n(`Not found: ${getPath(req)}`),
});
}

// Send redirect
Expand Down

0 comments on commit 1acba02

Please sign in to comment.