aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorNelson Galdeman <nelsongaldeman@gmail.com>2021-07-20 09:50:54 +0100
committerNelson Galdeman <nelsongaldeman@gmail.com>2021-07-20 09:50:54 +0100
commit179a051704321ba40277a5855d6ac0dbb45689dd (patch)
treea94de099a53985fdf2bdf40b6b15dd725877bf8e /test
parentd8f1e1327f9c2f9fcc804468f6a981580acdf30a (diff)
downloadbitcoin-179a051704321ba40277a5855d6ac0dbb45689dd.tar.xz
util: improves error messages on get_previous_releases script
If a requested version doesn't exist on our list of checksums it says it cannot do a checksum comparision instead of saying it did not match
Diffstat (limited to 'test')
-rwxr-xr-xtest/get_previous_releases.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/test/get_previous_releases.py b/test/get_previous_releases.py
index b177fbb4b2..51f2c30bbd 100755
--- a/test/get_previous_releases.py
+++ b/test/get_previous_releases.py
@@ -104,7 +104,11 @@ def download_binary(tag, args) -> int:
tarballHash = hasher.hexdigest()
if tarballHash not in SHA256_SUMS or SHA256_SUMS[tarballHash] != tarball:
- print("Checksum did not match")
+ if tarball in SHA256_SUMS.values():
+ print("Checksum did not match")
+ return 1
+
+ print("Checksum for given version doesn't exist")
return 1
print("Checksum matched")