From a6e03dfe421fb4bace1afcdef40c47cd15074750 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fabian=20Gr=C3=BCnbichler?= Date: Wed, 7 Sep 2022 13:04:49 +0200 Subject: [PATCH] subscription: properly forward verification error MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit when verifying the server response used for offline mirror keys. Signed-off-by: Fabian Grünbichler --- proxmox-subscription/src/sign.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/proxmox-subscription/src/sign.rs b/proxmox-subscription/src/sign.rs index 923cd41e..50ee352b 100644 --- a/proxmox-subscription/src/sign.rs +++ b/proxmox-subscription/src/sign.rs @@ -82,7 +82,7 @@ impl SignedResponse { match key.verify(&canonical, &self.signature) { Ok(()) => Ok(self.blobs), - Err(_) => todo!(), + Err(err) => bail!("Failed to verify response signature - {err}"), } } }