change panic to bail

pull/1572/head
Byron Hambly 2 months ago
parent cfcc41e340
commit 4344150d86
No known key found for this signature in database
GPG Key ID: DE8F6EA20A661697

@ -277,9 +277,10 @@ impl WalletRpc {
let result = hasher.finalize();
let result_hash = HEXLOWER.encode(result.as_ref());
if result_hash != DOWNLOAD_HASH {
panic!(
bail!(
"SHA256 of download ({}) does not match expected ({})!",
result_hash, DOWNLOAD_HASH
result_hash,
DOWNLOAD_HASH
);
} else {
tracing::debug!("Hashes match");

Loading…
Cancel
Save