We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents d8dee78 + 6c818d1 commit 29165daCopy full SHA for 29165da
1 file changed
src/ib-client.ts
@@ -343,9 +343,9 @@ export class IBClient {
343
this.isAuthenticated = false;
344
this.stopTickle();
345
if (this.authAttempts >= this.maxAuthAttempts) {
346
- throw new Error(`Failed to authenticate with IB Gateway after ${this.maxAuthAttempts} attempts`);
+ throw new Error(`Failed to authenticate with IB Gateway after ${this.maxAuthAttempts} attempts: ${isError(error) ? error.message : String(error)}`);
347
}
348
- throw new Error("Failed to authenticate with IB Gateway");
+ throw error;
349
350
351
0 commit comments