Fix bug in checksum reporting
The number of variables in the string printed for a checksum failure was not correct. Now a useful error message is printed instead of a stack trace and a TypeError.
This commit is contained in:
parent
b32cbd6b13
commit
1c1e7295f0
@ -552,8 +552,8 @@ def do_fetch(self):
|
||||
tty.msg("Checksum passed for %s" % self.name)
|
||||
else:
|
||||
raise ChecksumError(
|
||||
"%s checksum failed for %s." % checker.hash_name,
|
||||
"Expected %s but got %s." % (self.name, digest, checker.sum))
|
||||
"%s checksum failed for %s." % (checker.hash_name, self.name),
|
||||
"Expected %s but got %s." % (digest, checker.sum))
|
||||
|
||||
|
||||
def do_stage(self):
|
||||
|
Loading…
Reference in New Issue
Block a user