Logging the error object won’t print error’s stack trace.
You need to ask for it specifically:
console.error('You had an error: ', err.stack);
Logging the error object won’t print error’s stack trace.
You need to ask for it specifically:
console.error('You had an error: ', err.stack);