diff options
author | Denis Davydov <davydden@gmail.com> | 2018-10-04 04:46:14 +0200 |
---|---|---|
committer | Peter Scheibel <scheibel1@llnl.gov> | 2018-10-03 19:46:14 -0700 |
commit | 600acbbe663c6b341eac53611611887242ffba87 (patch) | |
tree | 834425eed48b6ea3d6a07cc3d228769fbe9cd91a | |
parent | 219846684bef2313223e80ddf6578c2ec14fd540 (diff) | |
download | spack-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.
-rw-r--r-- | var/spack/repos/builtin/packages/python/package.py | 4 |
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): |