subscription: properly forward verification error

when verifying the server response used for offline mirror keys.

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
This commit is contained in:
Fabian Grünbichler 2022-09-07 13:04:49 +02:00
parent d55816e9dd
commit a6e03dfe42

View File

@ -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}"),
}
}
}