( error: unknown, body: unknown, )
| 396 | } |
| 397 | |
| 398 | async function* createErrorStream( |
| 399 | error: unknown, |
| 400 | body: unknown, |
| 401 | ): AsyncIterable<StreamChunk> { |
| 402 | const message = getErrorMessage(error) |
| 403 | |
| 404 | yield { |
| 405 | type: EventType.RUN_ERROR, |
| 406 | ...getRequestRunContext(body), |
| 407 | message, |
| 408 | code: 'REACT_NATIVE_EXAMPLE_SERVER_ERROR', |
| 409 | error: { |
| 410 | message, |
| 411 | code: 'REACT_NATIVE_EXAMPLE_SERVER_ERROR', |
| 412 | }, |
| 413 | } |
| 414 | } |
| 415 | |
| 416 | export const app = new Hono() |
| 417 |
no test coverage detected