Skip to content

Commit f60d2c6

Browse files
committed
improve error message produced by verify_checksum
1 parent 182881b commit f60d2c6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

easybuild/tools/filetools.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1298,8 +1298,8 @@ def verify_checksum(path, checksums):
12981298
# no matching checksums
12991299
return False
13001300
else:
1301-
raise EasyBuildError("Invalid checksum spec '%s', should be a string (MD5 or SHA256) "
1302-
"2-tuple (type, value) or tuple of alternative checksum specs.",
1301+
raise EasyBuildError("Invalid checksum spec '%s': should be a string (MD5 or SHA256), "
1302+
"2-tuple (type, value), or tuple of alternative checksum specs.",
13031303
checksum)
13041304

13051305
actual_checksum = compute_checksum(path, typ)

0 commit comments

Comments
 (0)