formatError
Overview
Format an error object for display. In development, we include the stack trace and if available, the server stack trace.
Signature
formatError(error)
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| error | Error | FetchError | Error | FetchError[] | yes | the error object to format |
Returns
string
- the formatted error message
Source
client/lib/utils/formatError.js:18