Skip to content

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 ​

NameTypeRequiredDescription
errorError | FetchError | Error | FetchError[]yesthe error object to format

Returns ​

string

  • the formatted error message

Source ​

client/lib/utils/formatError.js:18