Skip to content

Commit

Permalink
Update index.js
Browse files Browse the repository at this point in the history
If you're going to reject anyway, why would you do a "console.error" before that.
Let the user handle their own logging.

I want to only log errors in some cases and I cannot get over that without editing the library...
  • Loading branch information
randommr3 committed Dec 1, 2020
1 parent 0df8624 commit d7f50c9
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions index.js
Expand Up @@ -53,10 +53,8 @@ module.exports = function soapRequest(opts = {
});
}).catch((error) => {
if (error.response) {
console.error(`SOAP FAIL: ${error}`);
reject(error.response.data);
} else {
console.error(`SOAP FAIL: ${error}`);
reject(error);
}
});
Expand Down

0 comments on commit d7f50c9

Please sign in to comment.