Skip to content

Commit

Permalink
chore: extra error state The WrappedVerifiableCredentials input array…
Browse files Browse the repository at this point in the history
… is empty
  • Loading branch information
sanderPostma committed Oct 9, 2024
1 parent 4065f49 commit 0474cfe
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/evaluation/evaluationClientWrapper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -870,6 +870,9 @@ export class EvaluationClientWrapper {
},
): PresentationSubmission {
if (!this._client.results || this._client.results.length === 0) {
if(vcs.length === 0) {
throw Error('The WrappedVerifiableCredentials input array is empty');
}
throw Error('You need to call evaluate() before pex.presentationFrom()');
}
if (!this._client.generatePresentationSubmission) {
Expand Down

0 comments on commit 0474cfe

Please sign in to comment.