Skip to content
Myr

chore(hono-base): improve unfinalized response error (#2902)

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

authored by James Ross · committed by GitHub · parent 524296e · 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-base.ts+1 added-1 removed
449 unmodified lines
450 try {451 const context = await composed(c)452 if (!context.finalized) {453 throw new Error(454 'Context is not finalized. You may forget returning Response object or `await next()`'454 'Context is not finalized. Did you forget to return a Response object or `await next()`?'455 )456 }457458 return context.res
72 unmodified lines