Skip to content

Commit 25dab7b

Browse files
committed
fix: remove throwError call
1 parent cb696f8 commit 25dab7b

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

packages/lit-node-client-nodejs/src/lib/lit-node-client-nodejs.ts

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -874,7 +874,7 @@ export class LitNodeClientNodeJs
874874
// ========== Validate Params ==========
875875
if (!this.ready) {
876876
const message =
877-
'[executeJs] LitNodeClient is not ready. Please call await litNodeClient.connect() first.';
877+
'[executeJs] LitNodeClient is not ready. Please call await litNodeClient.connect() first.';
878878

879879
throw new LitNodeClientNotReadyError({}, message);
880880
}
@@ -1991,13 +1991,9 @@ export class LitNodeClientNodeJs
19911991
if (!this.ready) {
19921992
// If the client isn't ready, `connectedNodes` may be out-of-date, and we should throw an error immediately
19931993
const message =
1994-
'[executeJs] LitNodeClient is not ready. Please call await litNodeClient.connect() first.';
1994+
'[executeJs] LitNodeClient is not ready. Please call await litNodeClient.connect() first.';
19951995

1996-
throwError({
1997-
message,
1998-
errorKind: LIT_ERROR.LIT_NODE_CLIENT_NOT_READY_ERROR.kind,
1999-
errorCode: LIT_ERROR.LIT_NODE_CLIENT_NOT_READY_ERROR.name,
2000-
});
1996+
throw new LitNodeClientNotReadyError({}, message);
20011997
}
20021998

20031999
this.connectedNodes.forEach((nodeAddress: string) => {

0 commit comments

Comments
 (0)