(e, c)
| 117 | }) |
| 118 | |
| 119 | const onErrorHandler: ErrorHandler = (e, c) => { |
| 120 | if (e instanceof HTTPException) { |
| 121 | return c.json({ message: e.message, success: false }, e.status) |
| 122 | } |
| 123 | return c.json({ message: e.message }, 500) |
| 124 | } |
| 125 | |
| 126 | describe('JSON', () => { |
| 127 | const app = new Hono() |
nothing calls this directly
no test coverage detected
searching dependent graphs…