From 29e7c3946bba6e0be21c82a5437ab41248e0d9cb Mon Sep 17 00:00:00 2001 From: sanderPostma Date: Thu, 14 Nov 2024 22:24:35 +0100 Subject: [PATCH] Promise.reject(Error(' --- packages/siop-oid4vp/lib/authorization-response/OpenID4VP.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/siop-oid4vp/lib/authorization-response/OpenID4VP.ts b/packages/siop-oid4vp/lib/authorization-response/OpenID4VP.ts index 1b922cb4..58905f4b 100644 --- a/packages/siop-oid4vp/lib/authorization-response/OpenID4VP.ts +++ b/packages/siop-oid4vp/lib/authorization-response/OpenID4VP.ts @@ -288,7 +288,7 @@ export const assertValidVerifiablePresentations = async (args: { }) => { const {presentations} = args if (!presentations || (Array.isArray(presentations) && presentations.length === 0)) { - throw Error('missing presentation(s)') + throw Error(Promise.reject('missing presentation(s)')) } const presentationsArray = Array.isArray(presentations) ? presentations : [presentations] if (