From 2b4770a8dafd3a61c6c27363acc3447d8709d8c3 Mon Sep 17 00:00:00 2001 From: Dan Gowans Date: Wed, 22 Feb 2023 13:00:38 -0500 Subject: [PATCH] show 404 path to debug github action --- app.js | 2 +- app.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app.js b/app.js index 98cb3f32..f898342e 100644 --- a/app.js +++ b/app.js @@ -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; diff --git a/app.ts b/app.ts index 7f64f741..12013c48 100644 --- a/app.ts +++ b/app.ts @@ -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