From 205ffb7684f18256690f374ab78745ccfe5d850d Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Sat, 28 Feb 2026 19:26:13 -0800 Subject: fix hono route order --- lib/app.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/app.ts b/lib/app.ts index 8dc1e106..e2b8d49e 100644 --- a/lib/app.ts +++ b/lib/app.ts @@ -141,7 +141,8 @@ app.use("*", async (c, next) => { }); // Error handler -app.onError((_err, c) => { +app.onError((err, c) => { + console.error("unhandled error:", c.req.method, c.req.path, err?.message || err); return c.json({ ok: false }, 500); }); -- cgit v1.2.3