aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2026-02-28 19:26:13 -0800
committerAdam Soltys <[email protected]>2026-02-28 19:26:13 -0800
commit205ffb7684f18256690f374ab78745ccfe5d850d (patch)
tree2defac29b4579a3aa67ec536b6aef0d6452b91fe /lib
parentcaf1f126d0569670712e26fa2f6ac3127605cd91 (diff)
downloadcoinos-server-205ffb7684f18256690f374ab78745ccfe5d850d.tar.gz
coinos-server-205ffb7684f18256690f374ab78745ccfe5d850d.zip
fix hono route order
Diffstat (limited to 'lib')
-rw-r--r--lib/app.ts3
1 files changed, 2 insertions, 1 deletions
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);
});