Skip to content

Commit de47a3b

Browse files
committed
Merge branch 'dev' into canary
2 parents 044d3dc + 7611863 commit de47a3b

File tree

2 files changed

+1
-1
lines changed

2 files changed

+1
-1
lines changed

lib/dispatchRequest.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,6 @@ function DispatchRequest(url, action, payload, local_auth, remote_auth = null) {
9595
.then(response => response.data)
9696
.catch(err => {
9797
let e = new Error(ErrorMessage.getAPIErrorMessage(url, options, err))
98-
console.log(err)
9998
if (err.response && err.response.data) {
10099
e.data = err.response.data
101100
}

lib/errorMessage.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ function getErrorAsMessage(url, api, err) {
1111
if (err.type) str += ` Type: ${err.type}`;
1212
if (url) str += ` url: ${url}`;
1313
if (api && api.method) str += ` method: ${api.method}`;
14+
if (err.stack) str = [str, err.stack].join("\n");
1415
return str;
1516
}
1617

0 commit comments

Comments
 (0)