Display proper message when patch checksum doesn't match (#24229)

This commit is contained in:
iarspider 2021-06-11 10:31:33 +02:00 committed by GitHub
parent dcb3fbf98e
commit ea08e93f2f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -291,7 +291,7 @@ def from_dict(dictionary):
if not checker.check(patch.path):
raise fs.ChecksumError(
"sha256 checksum failed for %s" % patch.path,
"Expected %s but got %s" % (sha256, checker.sum),
"Expected %s but got %s " % (sha256, checker.sum) +
"Patch may have changed since concretization.")
return patch
else: