Skip to content
Myr

use console.trace to improve error handler (#556)

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

authored by Prabhakar Mishra · committed by GitHub · parent 84451d6 · 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
138 unmodified lines
139 return c.text('404 Not Found', 404)140 }141142 private errorHandler: ErrorHandler<E> = (err: Error, c: Context<string, E>) => {143 console.error(`${err.stack || err.message}`)143 console.trace(err.message)144 const message = 'Internal Server Error'145 return c.text(message, 500)146 }147
135 unmodified lines