From 7710f233ac09f5422dae05c51409cc0aa86e0bd3 Mon Sep 17 00:00:00 2001 From: Ryan Tate Date: Mon, 25 Nov 2024 10:00:44 -0800 Subject: [PATCH] Update src/core/authorization_request/parameters.rs Co-authored-by: Jacob --- src/core/authorization_request/parameters.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/authorization_request/parameters.rs b/src/core/authorization_request/parameters.rs index 12afc7a..43a5b2e 100644 --- a/src/core/authorization_request/parameters.rs +++ b/src/core/authorization_request/parameters.rs @@ -224,7 +224,7 @@ impl ClientMetadata { /// /// See reference: https://openid.net/specs/openid-4-verifiable-presentations-1_0.html#section-5.1-4.2.2.2 pub fn vp_formats(&self) -> Result { - self.0.get().ok_or(anyhow!("missing vp_formats"))? + self.0.get().parsing_error()? } /// OPTIONAL. As defined in [JARM](https://openid.net/specs/openid-4-verifiable-presentations-1_0.html#JARM).