summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorTodd Gamblin <tgamblin@llnl.gov>2015-07-14 23:59:03 -0700
committerTodd Gamblin <tgamblin@llnl.gov>2015-07-14 23:59:03 -0700
commit9087f26537304727fc268023233a705481afc26a (patch)
treef97d5630f4f24b3e7529bc3ad4469e622fe96434 /lib
parent8828dbf2e8b59ba3e3bb7e7e7ecab62e4f3d9dae (diff)
downloadspack-9087f26537304727fc268023233a705481afc26a.tar.gz
spack-9087f26537304727fc268023233a705481afc26a.tar.bz2
spack-9087f26537304727fc268023233a705481afc26a.tar.xz
spack-9087f26537304727fc268023233a705481afc26a.zip
Fix mangled error message.
Diffstat (limited to 'lib')
-rw-r--r--lib/spack/spack/packages.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/spack/spack/packages.py b/lib/spack/spack/packages.py
index 43c4c191c1..adfbc26c1d 100644
--- a/lib/spack/spack/packages.py
+++ b/lib/spack/spack/packages.py
@@ -108,7 +108,7 @@ class PackageDB(object):
providers = self.provider_index.providers_for(vpkg_spec)
if not providers:
- raise UnknownPackageError("No such virtual package: %s" % vpkg_spec)
+ raise UnknownPackageError(vpkg_spec.name)
return providers
@@ -238,7 +238,7 @@ class PackageDB(object):
class UnknownPackageError(spack.error.SpackError):
"""Raised when we encounter a package spack doesn't have."""
def __init__(self, name):
- super(UnknownPackageError, self).__init__("Package %s not found." % name)
+ super(UnknownPackageError, self).__init__("Package '%s' not found." % name)
self.name = name