From ea08e93f2fcd2deb8e89b0567566ef32e00aef86 Mon Sep 17 00:00:00 2001 From: iarspider Date: Fri, 11 Jun 2021 10:31:33 +0200 Subject: Display proper message when patch checksum doesn't match (#24229) --- lib/spack/spack/patch.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/spack/spack/patch.py b/lib/spack/spack/patch.py index d38b2ef767..8eb7b8146f 100644 --- a/lib/spack/spack/patch.py +++ b/lib/spack/spack/patch.py @@ -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: -- cgit v1.2.3-60-g2f50