Using promises - Logging stack trace in fail handler
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);