Skip to content

Commit 2d13751

Browse files
committed
docs: 💡 update comment wording
1 parent 0dacde8 commit 2d13751

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

packages/plugin-hono/src/hono.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,8 @@ module.exports = {
4040
let rethrow = false
4141

4242
try {
43-
// Catch non-errors thrown in routes without causing the route to hang by awaiting the next() call inside a try/catch block.
44-
// The error is then attached to the context and processed in the same way as errors thrown in routes.
43+
// Catch all thrown values from routes by awaiting next() inside a try/catch block.
44+
// This also ensures non-Error throws are attached to the context and processed without causing the route to hang.
4545
await next()
4646
} catch (err) {
4747
c.error = err

0 commit comments

Comments
 (0)