Skip to content

Commit

Permalink
chore(hono-base): improve unfinalized response error (#2902)
Browse files Browse the repository at this point in the history
  • Loading branch information
Cherry authored Jun 4, 2024
1 parent 524296e commit d13588e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/hono-base.ts
Original file line number Diff line number Diff line change
Expand Up @@ -451,7 +451,7 @@ class Hono<E extends Env = Env, S extends Schema = {}, BasePath extends string =
const context = await composed(c)
if (!context.finalized) {
throw new Error(
'Context is not finalized. You may forget returning Response object or `await next()`'
'Context is not finalized. Did you forget to return a Response object or `await next()`?'
)
}

Expand Down

0 comments on commit d13588e

Please sign in to comment.