diff --git a/lib/evaluation/evaluationClientWrapper.ts b/lib/evaluation/evaluationClientWrapper.ts index bb590f5..c16410a 100644 --- a/lib/evaluation/evaluationClientWrapper.ts +++ b/lib/evaluation/evaluationClientWrapper.ts @@ -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) {