diff options
author | George Hartzell <hartzell@alerce.com> | 2017-05-25 11:00:58 -0700 |
---|---|---|
committer | Adam J. Stewart <ajstewart426@gmail.com> | 2017-05-25 13:00:58 -0500 |
commit | 26440accabc68d441b759f448ac0e76736fb3b3c (patch) | |
tree | 5689439fbeb9ec46f027b4782677cf5f2f7d1401 /lib | |
parent | 53713d57c92a82d8aac7c1447d08b3b2b95420cf (diff) | |
download | spack-26440accabc68d441b759f448ac0e76736fb3b3c.tar.gz spack-26440accabc68d441b759f448ac0e76736fb3b3c.tar.bz2 spack-26440accabc68d441b759f448ac0e76736fb3b3c.tar.xz spack-26440accabc68d441b759f448ac0e76736fb3b3c.zip |
Touch up string expansion. (#4344)
* Touch up string expansion.
I'm chasing this:
```
$ (module purge; spack install perl %gcc/5.4.0)
==> Error: No installed spec matches the hash: '%s'
```
There's something deeper going on, but the error message isn't helpful.
After this change it tells me this:
```
$ (module purge; spack install perl %gcc/5.4.0)
==> Error: No installed spec matches the hash: '5.4.0'
```
Which is weird because `5.4.0` is not a hash... Whatever is going on here, the error message needs to be fixed.
* Flake8 whitespace
Diffstat (limited to 'lib')
-rw-r--r-- | lib/spack/spack/spec.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/spack/spack/spec.py b/lib/spack/spack/spec.py index 9e89feb148..c757e6b0d6 100644 --- a/lib/spack/spack/spec.py +++ b/lib/spack/spack/spec.py @@ -3395,7 +3395,8 @@ class InvalidHashError(SpecError): class NoSuchHashError(SpecError): def __init__(self, hash): super(NoSuchHashError, self).__init__( - "No installed spec matches the hash: '%s'") + "No installed spec matches the hash: '%s'" + % hash) class RedundantSpecError(SpecError): |