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
Parameter | Type | Description |
---|---|---|
err | unknown | The unknown error, commonly from catch . |
Returns
string
The error information.