Skip to content

Commit 8a2ab5b

Browse files
authored
Fix thrown error class to NicheError in error-handling tutorial, (#667)
* Update index.md fix wrong class error call * feat: Update index.md change tab to space
1 parent 08c3995 commit 8a2ab5b

File tree

1 file changed

+1
-1
lines changed
  • docs/tutorial/patterns/error-handling

1 file changed

+1
-1
lines changed

docs/tutorial/patterns/error-handling/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ new Elysia()
7878
}
7979
})
8080
.get('/', () => {
81-
throw new CustomError('Custom error message')
81+
throw new NicheError('Custom error message')
8282
})
8383
.listen(3000)
8484
```

0 commit comments

Comments
 (0)