diff --git a/packages/agent/src/did-api.ts b/packages/agent/src/did-api.ts index 5c12dc159..ff5fac51b 100644 --- a/packages/agent/src/did-api.ts +++ b/packages/agent/src/did-api.ts @@ -231,7 +231,7 @@ export class AgentDidApi // 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.