Skip to content

Commit

Permalink
Update index.js
Browse files Browse the repository at this point in the history
reject error.response instead of err.response.data
  • Loading branch information
circa10a committed Jun 1, 2020
1 parent d856ebb commit 50fdb3b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ module.exports = function soapRequest(opts = {
}).catch((error) => {
if (error.response) {
console.error(`SOAP FAIL: ${error}`);
reject(error.response.data);
reject(error.response);
} else {
console.error(`SOAP FAIL: ${error}`);
reject(error);
Expand Down

0 comments on commit 50fdb3b

Please sign in to comment.