show 404 path to debug github action

deepsource-autofix-76c6eb20
Dan Gowans 2023-02-22 13:00:38 -05:00
parent afa96056e8
commit 2b4770a8da
2 changed files with 2 additions and 2 deletions

2
app.js
View File

@ -148,6 +148,6 @@ app.get(urlPrefix + '/logout', (request, response) => {
});
app.use((request, _response, next) => {
debugApp(request.url);
next(createError(404, 'File not found.'));
next(createError(404, 'File not found: ' + request.url));
});
export default app;

2
app.ts
View File

@ -277,7 +277,7 @@ app.get(urlPrefix + '/logout', (request, response) => {
// Catch 404 and forward to error handler
app.use((request, _response, next) => {
debugApp(request.url)
next(createError(404, 'File not found.'))
next(createError(404, 'File not found: ' + request.url))
})
export default app