From feb15561e7a72e66023b3c01f0fcf585f83fb367 Mon Sep 17 00:00:00 2001 From: kqr Date: Fri, 28 Nov 2025 11:36:29 +0100 Subject: [PATCH] Let iplayif print out which path was unrecognised to aid debugging This came up when I wanted to troubleshoot /api/sitegen but accidentally typed /app/sitegen. I would not have seen it unless the application reflected it back to me. This path will be visible to the user if they hit the right error condition, but I don't think that's a problem. --- src/iplayif.com/app/src/app.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/iplayif.com/app/src/app.ts b/src/iplayif.com/app/src/app.ts index 3eb679ce..56daf668 100644 --- a/src/iplayif.com/app/src/app.ts +++ b/src/iplayif.com/app/src/app.ts @@ -100,6 +100,6 @@ export default class IplayifApp { } // Unexpected path - ctx.throw(400, 'Unexpected path') + ctx.throw(400, `Unexpected path ${request_path}`) } } \ No newline at end of file