Skip to content

Commit f626d9c

Browse files
committed
Grammar/Typos: Insert articles, pluralize, and fix spelling errors
1 parent 1b8db0d commit f626d9c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

docs/patterns/error-handling.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ new Elysia()
5454
```
5555

5656
## Local Error
57-
You can assign error handling method to a scope using [hook](/concept/life-cycle.html#local-hook) or [guard](/concept/guard.html)
57+
You can assign an error handling method to a scope using [hook](/concept/life-cycle.html#local-hook) or [guard](/concept/guard.html)
5858
```typescript
5959
app.get('/', () => 'Hello', {
6060
beforeHandle({ set, request: { headers } }) {
@@ -71,7 +71,7 @@ app.get('/', () => 'Hello', {
7171
```
7272

7373
## Custom Error Message
74-
You can provide custom error message by providing `error`:
74+
You can provide a custom error message by providing `error`:
7575
```ts
7676
new Elysia()
7777
.post('/', ({ body }) => body, {
@@ -99,9 +99,9 @@ If no error response is returned, the error will be returned using `error.name`.
9999
:::
100100

101101
## Custom Error
102-
Elysia supports custom error both in type-level and implementaiton level.
102+
Elysia supports custom error both in the type-level and implementation level.
103103

104-
Helping you to easly classify and narrow down the error type for fully type safety with an auto-complete:
104+
Helping you to easily classify and narrow down the error type for full type safety with auto-complete:
105105
```ts
106106
class CustomError extends Error {
107107
constructor(public message: string) {

0 commit comments

Comments
 (0)