Skip to content

Commit

Permalink
stringified didResolutionMetadata to get more information on resolu…
Browse files Browse the repository at this point in the history
…tion failures
  • Loading branch information
LiranCohen committed May 8, 2024
1 parent df0ebe3 commit f0f6ed8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/agent/src/did-api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ export class AgentDidApi<TKeyManager extends AgentKeyManager = AgentKeyManager>
// Resolve the DID document.
const { didDocument, didResolutionMetadata } = await this.resolve(didUri);
if (!didDocument) {
throw new Error(`DID resolution failed for '${didUri}': ${didResolutionMetadata.error}`);
throw new Error(`DID resolution failed for '${didUri}': ${JSON.stringify(didResolutionMetadata)}`);
}

// Retrieve the method-specific verification method to be used for signing operations.
Expand Down

0 comments on commit f0f6ed8

Please sign in to comment.