From 3e5171fe15edb7d3ef4418bde3b319699da1e877 Mon Sep 17 00:00:00 2001 From: Yusuke Wada Date: Wed, 20 Apr 2022 17:16:36 +0900 Subject: [PATCH] feat: show stack-trace in default error handler (#158) --- src/hono.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hono.ts b/src/hono.ts index 36e2e62e..bf73fc1e 100644 --- a/src/hono.ts +++ b/src/hono.ts @@ -58,7 +58,7 @@ export class Hono { } private errorHandler: ErrorHandler = (err: Error, c: Context) => { - console.error(`${err.message}`) + console.error(`${err.stack || err.message}`) const message = 'Internal Server Error' return c.text(message, 500) }