Skip to content

Commit e20a6ea

Browse files
authored
Update custom-404.md
1 parent 43db447 commit e20a6ea

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/integrations/custom-404.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ You can define custom 404 using `onError` hook:
2020
import { Elysia } from 'elysia'
2121

2222
new Elysia()
23-
.onError((code, error) => {
23+
.onError(({ code, error }) => {
2424
if (code === 'NOT_FOUND')
2525
return new Response('Not Found :(', {
2626
status: 404

0 commit comments

Comments
 (0)