diff options
author | Seth R. Johnson <johnsonsr@ornl.gov> | 2022-08-10 05:01:07 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-08-10 11:01:07 +0200 |
commit | 5d6ab9a76c75a5f260d92b592d55ed5a424e0d09 (patch) | |
tree | d4097473278597eb43eda7ac49ae8e4ad43d14c8 /lib | |
parent | 13bcf828513b053433c6ff24c3ecc4d64d1b725d (diff) | |
download | spack-5d6ab9a76c75a5f260d92b592d55ed5a424e0d09.tar.gz spack-5d6ab9a76c75a5f260d92b592d55ed5a424e0d09.tar.bz2 spack-5d6ab9a76c75a5f260d92b592d55ed5a424e0d09.tar.xz spack-5d6ab9a76c75a5f260d92b592d55ed5a424e0d09.zip |
core: add a helpful long message for UnknownPackageError (#31996)
```
Error: Package 'armpl' not found.
```
is pretty useless after an upgrade unless you're a spack pro. I've
recently hit this on multiple machines. See
https://github.com/spack/spack/issues/31453 ,
https://github.com/spack/spack/issues/31489 .
Diffstat (limited to 'lib')
-rw-r--r-- | lib/spack/spack/repo.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/spack/spack/repo.py b/lib/spack/spack/repo.py index 11a4e14416..814f84049a 100644 --- a/lib/spack/spack/repo.py +++ b/lib/spack/spack/repo.py @@ -1478,6 +1478,8 @@ class UnknownPackageError(UnknownEntityError): if name.endswith(".yaml"): long_msg = "Did you mean to specify a filename with './{0}'?" long_msg = long_msg.format(name) + else: + long_msg = "You may need to run 'spack clean -m'." else: msg = "Attempting to retrieve anonymous package." |