@nuxt/docs-nightly 5.0.0-2611021907-7fdffb7 → 5.0.0-2611022104-802b944
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -40,6 +40,8 @@ interface NuxtError {
|
|
|
40
40
|
}
|
|
41
41
|
```
|
|
42
42
|
|
|
43
|
+
When the error page is rendered on the server in production, it only receives the `message` and `data` of an error created with `createError`. Any other error the app throws, such as a failed `$fetch`, is marked `unhandled` and reaches the error page and the payload with its status and a generic message. To show its details, catch it and throw a `createError` with what the client may see.
|
|
44
|
+
|
|
43
45
|
If you have an error with custom fields they will be lost; you should assign them to `data` instead:
|
|
44
46
|
|
|
45
47
|
```ts
|