From 600acbbe663c6b341eac53611611887242ffba87 Mon Sep 17 00:00:00 2001 From: Denis Davydov Date: Thu, 4 Oct 2018 04:46:14 +0200 Subject: 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. --- var/spack/repos/builtin/packages/python/package.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'var') 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): -- cgit v1.2.3-70-g09d2