Skip to content

Commit c9042eb

Browse files
committed
chore(lit-client): better error message when there's no attestation in the response
1 parent 42e92f6 commit c9042eb

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

packages/lit-client/src/lib/LitClient/orchestrateHandshake.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,11 @@ export const orchestrateHandshake = async (params: {
117117
if (!retrievedServerKeys.attestation) {
118118
throw new InvalidNodeAttestation(
119119
{},
120-
`Missing attestation in handshake response from ${url}`
120+
`Missing attestation in handshake response from ${url}, received ${JSON.stringify(
121+
retrievedServerKeys,
122+
null,
123+
2
124+
)}. "attestation" field should not be null.`
121125
);
122126
}
123127

0 commit comments

Comments
 (0)