Skip to content

Commit 35677ba

Browse files
committed
stringify in error message
1 parent 592b3e2 commit 35677ba

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/thirdweb/src/engine/server-wallet.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -401,7 +401,7 @@ export function serverWallet(options: ServerWalletOptions): ServerWallet {
401401
}
402402

403403
throw new Error(
404-
`Failed to sign message: ${signatureResult?.error || "Unknown error"}`,
404+
`Failed to sign message: ${stringify(signatureResult?.error) || "Unknown error"}`,
405405
);
406406
},
407407
signTypedData: async (typedData) => {
@@ -434,7 +434,7 @@ export function serverWallet(options: ServerWalletOptions): ServerWallet {
434434
}
435435

436436
throw new Error(
437-
`Failed to sign message: ${signatureResult?.error || "Unknown error"}`,
437+
`Failed to sign message: ${stringify(signatureResult?.error) || "Unknown error"}`,
438438
);
439439
},
440440
};

0 commit comments

Comments
 (0)