Skip to content
Myr

feat: show stack-trace in default error handler (#158)

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Yusuke Wada · committed by GitHub · parent a95ffe0 · Browse files · 1 file+1 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+1 added−1 removed

  • other:+1 added−1 removed

1 file+1 added−1 removed

modified:src/hono.ts+1 added-1 removed
56 unmodified lines
57 return c.text(message, 404)58 }5960 private errorHandler: ErrorHandler = (err: Error, c: Context) => {61 console.error(`${err.message}`)61 console.error(`${err.stack || err.message}`)62 const message = 'Internal Server Error'63 return c.text(message, 500)64 }65
160 unmodified lines