Skip to content

Commit 6ad0637

Browse files
committed
Add the failed auth error
1 parent 7082f02 commit 6ad0637

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lib/index.js

+4
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,9 @@ class BrokerBin {
7676
if (err) { return reject(err) }
7777
// Get the UID
7878
const UID = this.soapUid = resSession.$value
79+
if (UID === "Failed Authentication") {
80+
return reject(new Error("Failed SOAP authentication"))
81+
}
7982
resolve(UID)
8083
})
8184
})
@@ -107,6 +110,7 @@ class BrokerBin {
107110
} catch (e) {
108111
// TODO This fails quite silently
109112
console.error(e)
113+
console.error("The original response is: ", res)
110114
res = {}
111115
res.resultset = [{
112116
result: []

0 commit comments

Comments
 (0)