From f49a738b5e8ff96dfd65b4159a96125e0ea467aa Mon Sep 17 00:00:00 2001 From: Abiria Date: Mon, 20 Oct 2025 22:01:18 -0400 Subject: [PATCH] fix: code typo on error handling tutorial the code is calling `status()` function from the context, but the handler parameter missed it. --- docs/tutorial/patterns/error-handling/index.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/tutorial/patterns/error-handling/index.md b/docs/tutorial/patterns/error-handling/index.md index a3ee2cc9..6cc65f4c 100644 --- a/docs/tutorial/patterns/error-handling/index.md +++ b/docs/tutorial/patterns/error-handling/index.md @@ -40,7 +40,7 @@ It accept **context** similar to handler but include an additional: import { Elysia } from 'elysia' new Elysia() - .onError(({ error, code }) => { + .onError(({ code, status }) => { if(code === "NOT_FOUND") return 'uhe~ are you lost?'