docs: fix a typo and link (#4281)

This commit is contained in:
Ada J 2022-04-12 16:13:02 +08:00 committed by GitHub
parent d8ee524141
commit 2dadd4f0b3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,6 +1,6 @@
# `throwError`
Nuxt provides a quick and simple way to throw errows.
Nuxt provides a quick and simple way to throw errors.
Within your pages, components and plugins you can use `throwError` to throw an error.
@ -12,7 +12,7 @@ Within your pages, components and plugins you can use `throwError` to throw an e
throwError("😱 Oh no, an error has been thrown.")
```
The thrown error is set in state using [`useError()`](/api/composables/useError) to create a reactive and SSR-friendly shared error state across components.
The thrown error is set in state using [`useError()`](/api/composables/use-error) to create a reactive and SSR-friendly shared error state across components.
`throwError` calls the `app:error` hook.