Skip to content

Commit 6b89c50

Browse files
authored
🔧 fix: Eylsia.error to Elysia.error (#269)
1 parent bb22e5d commit 6b89c50

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎docs/life-cycle/on-error.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ If no error response is returned, the error will be returned using `error.name`.
9292

9393
Elysia supports custom error both in the type-level and implementation level.
9494

95-
To provide a custom error code, we can use `Eylsia.error` to add a custom error code, helping us to easily classify and narrow down the error type for full type safety with auto-complete as the following:
95+
To provide a custom error code, we can use `Elysia.error` to add a custom error code, helping us to easily classify and narrow down the error type for full type safety with auto-complete as the following:
9696

9797
```typescript
9898
class MyError extends Error {

0 commit comments

Comments
 (0)