Skip to main content

utils

Functions

grabErrorInfo()

grabErrorInfo(err): string

Grab as much information as possible from an unknown error.

A string error will be returned as is. An Error object will return its stack if it exists, otherwise its message. If the error does not fall into any of the above categories, a generic message will be returned.

Parameters

ParameterTypeDescription
errunknownThe unknown error, commonly from catch.

Returns

string

The error information.

Defined in

canvas/utils.ts:11