Skip to content

Commit 95c788f

Browse files
committed
Update checksum type error message
1 parent ea926f1 commit 95c788f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

easybuild/tools/filetools.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1299,7 +1299,8 @@ def verify_checksum(path, checksums):
12991299
# no matching checksums
13001300
return False
13011301
else:
1302-
raise EasyBuildError("Invalid checksum spec '%s', should be a string (MD5) or 2-tuple (type, value).",
1302+
raise EasyBuildError("Invalid checksum spec '%s', should be a string (MD5 or SHA256) "
1303+
"2-tuple (type, value) or tuple of alternative checksum specs.",
13031304
checksum)
13041305

13051306
actual_checksum = compute_checksum(path, typ)

0 commit comments

Comments
 (0)