Type-safe function to get the error message from an error thrown in a try-catch block
The error as string or Error object
Optional
Options that determine how the error message is returned; defaults can be changed by modifying the defaults property.
defaults
String version of the err
Type-safe function to get the error message from an error thrown in a try-catch block