mirror of
https://github.com/comit-network/xmr-btc-swap.git
synced 2025-04-20 07:56:05 -04:00
change panic to bail
This commit is contained in:
parent
cfcc41e340
commit
4344150d86
@ -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…
x
Reference in New Issue
Block a user