summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorDenis Davydov <davydden@gmail.com>2018-10-04 04:46:14 +0200
committerPeter Scheibel <scheibel1@llnl.gov>2018-10-03 19:46:14 -0700
commit600acbbe663c6b341eac53611611887242ffba87 (patch)
tree834425eed48b6ea3d6a07cc3d228769fbe9cd91a /var
parent219846684bef2313223e80ddf6578c2ec14fd540 (diff)
downloadspack-600acbbe663c6b341eac53611611887242ffba87.tar.gz
spack-600acbbe663c6b341eac53611611887242ffba87.tar.bz2
spack-600acbbe663c6b341eac53611611887242ffba87.tar.xz
spack-600acbbe663c6b341eac53611611887242ffba87.zip
python: add details on missing library to error message (#9332)
When a library cannot be found, the exception now includes the name of the library that was requested.
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/python/package.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/var/spack/repos/builtin/packages/python/package.py b/var/spack/repos/builtin/packages/python/package.py
index bf7a39303f..8342be482f 100644
--- a/var/spack/repos/builtin/packages/python/package.py
+++ b/var/spack/repos/builtin/packages/python/package.py
@@ -528,7 +528,7 @@ class Python(AutotoolsPackage):
return LibraryList(os.path.join(frameworkprefix, ldlibrary))
else:
msg = 'Unable to locate {0} libraries in {1}'
- raise RuntimeError(msg.format(self.name, libdir))
+ raise RuntimeError(msg.format(ldlibrary, libdir))
else:
library = self.get_config_var('LIBRARY')
@@ -538,7 +538,7 @@ class Python(AutotoolsPackage):
return LibraryList(os.path.join(frameworkprefix, library))
else:
msg = 'Unable to locate {0} libraries in {1}'
- raise RuntimeError(msg.format(self.name, libdir))
+ raise RuntimeError(msg.format(library, libdir))
@property
def headers(self):