Skip to content

Commit

Permalink
Add cause debugging.
Browse files Browse the repository at this point in the history
  • Loading branch information
davidlehn committed Aug 27, 2024
1 parent e6994c6 commit a1ad057
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/helpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ import {serviceAgents} from '@bedrock/service-agent';
import {serviceType} from './constants.js';
import {ZcapClient} from '@digitalbazaar/ezcap';

import {serializeError} from 'serialize-error';

const {util: {BedrockError}} = bedrock;

export function createZcapClient({capabilityAgent}) {
Expand Down Expand Up @@ -105,6 +107,7 @@ export async function getIssuerAndSecuringMethods({config, options}) {
'Unable to create cryptosuite suite for issuance: ' + cause.message, {
name: 'AbortError',
details: {
CAUSE: serializeError(cause),
httpStatusCode: 500,
public: true
},
Expand Down

0 comments on commit a1ad057

Please sign in to comment.