Converts an error in catch clause to string.
The error object.
error
message
error.message
try { // ...} catch (e) { console.error(`Something failed: ${convertErrorToString(e)}`);} Copy
try { // ...} catch (e) { console.error(`Something failed: ${convertErrorToString(e)}`);}
Converts an error in catch clause to string.