Skip to content

Commit 0683a68

Browse files
committed
1 parent f27e6e7 commit 0683a68

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

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

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -700,11 +700,14 @@ export class LitNodeClientNodeJs
700700
}
701701

702702
if (!params.code) {
703-
return throwError({
704-
message: 'code is required',
705-
errorKind: LIT_ERROR.INVALID_PARAM_TYPE.kind,
706-
errorCode: LIT_ERROR.INVALID_PARAM_TYPE.name,
707-
});
703+
throw new InvalidParamType(
704+
{
705+
info: {
706+
params,
707+
},
708+
},
709+
'code is required'
710+
);
708711
}
709712

710713
// determine which node to run on

0 commit comments

Comments
 (0)