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

Documents matching: server v3.0.0a1.post1client v3.0.0-alpha.2