If the value is already an ErrorLike object, it is returned as-is.
If the value is a string, a new Error is created with that string as the message.
For all other values, a new Error is created with a message of the form
unknown error '<stringified>'.
Converts an unknown value to an ErrorLike object.
If the value is already an ErrorLike object, it is returned as-is. If the value is a string, a new
Erroris created with that string as the message. For all other values, a newErroris created with a message of the formunknown error '<stringified>'.