Skip to content

Commit

Permalink
fix handleError docs (#3672)
Browse files Browse the repository at this point in the history
  • Loading branch information
Rich-Harris committed Feb 1, 2022
1 parent 44a7c81 commit 078b34e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions documentation/docs/04-hooks.md
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ export async function handle({ event, resolve }) {
### handleError

If an error is thrown during rendering, this function will be called with the `error` and the `request` that caused it. This allows you to send data to an error tracking service, or to customise the formatting before printing the error to the console.
If an error is thrown during rendering, this function will be called with the `error` and the `event` that caused it. This allows you to send data to an error tracking service, or to customise the formatting before printing the error to the console.

During development, if an error occurs because of a syntax error in your Svelte code, a `frame` property will be appended highlighting the location of the error.

Expand Down Expand Up @@ -130,7 +130,7 @@ export function getSession(event) {
email: event.locals.user.email,
avatar: event.locals.user.avatar
}
}
}
: {};
}
```
Expand Down

0 comments on commit 078b34e

Please sign in to comment.