diff options
author | David Shrader <dshrader@lanl.gov> | 2014-05-20 15:20:17 -0600 |
---|---|---|
committer | David Shrader <dshrader@lanl.gov> | 2014-05-20 15:56:52 -0600 |
commit | 1c1e7295f02b123310efe88b0a23a9cb95cce2f4 (patch) | |
tree | 3a5521ec52d9ce3c644e5bc94421f4eafcbb58b8 /lib | |
parent | b32cbd6b133796ca95ebc1f407653a4e3985b832 (diff) | |
download | spack-1c1e7295f02b123310efe88b0a23a9cb95cce2f4.tar.gz spack-1c1e7295f02b123310efe88b0a23a9cb95cce2f4.tar.bz2 spack-1c1e7295f02b123310efe88b0a23a9cb95cce2f4.tar.xz spack-1c1e7295f02b123310efe88b0a23a9cb95cce2f4.zip |
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.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/spack/spack/package.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/spack/spack/package.py b/lib/spack/spack/package.py index f4bb54ca7d..59d7ce7907 100644 --- a/lib/spack/spack/package.py +++ b/lib/spack/spack/package.py @@ -552,8 +552,8 @@ class Package(object): 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): |