We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f27e6e7 commit 0683a68Copy full SHA for 0683a68
packages/lit-node-client-nodejs/src/lib/lit-node-client-nodejs.ts
@@ -700,11 +700,14 @@ export class LitNodeClientNodeJs
700
}
701
702
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
- });
+ throw new InvalidParamType(
+ {
+ info: {
+ params,
+ },
708
709
+ 'code is required'
710
+ );
711
712
713
// determine which node to run on
0 commit comments