Skip to content

Commit

Permalink
Fix missing custom errors
Browse files Browse the repository at this point in the history
  • Loading branch information
NSeydoux committed Dec 17, 2024
1 parent 0a18d2e commit cee98d9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/gConsent/manage/revokeAccessGrant.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ async function revokeAccessCredential(
!credential.has(quad(namedNode(getId(credential)), TYPE, vcType)),
)
) {
throw new Error(
throw new AccessGrantError(
`An error occurred when type checking the VC: Not of type [${types.map((type) => type.value).join("] or [")}]`,
);
}
Expand Down
2 changes: 1 addition & 1 deletion src/gConsent/request/issueAccessRequest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ async function issueAccessRequest(
normalize: normalizeAccessRequest,
});
if (!isAccessRequest(accessRequest)) {
throw new Error(
throw new AccessGrantError(
`${JSON.stringify(accessRequest)} is not an Access Request`,
);
}
Expand Down

0 comments on commit cee98d9

Please sign in to comment.