diff options
author | Greg Becker <becker33@llnl.gov> | 2019-07-23 13:58:07 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-07-23 13:58:07 -0500 |
commit | daac376862672fc436ccb33c0a04fae8f5b5029a (patch) | |
tree | 77f72de770b6735f1f927d0037322dd92f28f713 | |
parent | 5878b418c5d01a50b9b965f8f3c7b3956eab3aba (diff) | |
download | spack-daac376862672fc436ccb33c0a04fae8f5b5029a.tar.gz spack-daac376862672fc436ccb33c0a04fae8f5b5029a.tar.bz2 spack-daac376862672fc436ccb33c0a04fae8f5b5029a.tar.xz spack-daac376862672fc436ccb33c0a04fae8f5b5029a.zip |
error messages: include whole spec for "no externals found" message (#12070)
* Provide better error message when matching externals are found for package marked not buildable
-rw-r--r-- | lib/spack/spack/concretize.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/spack/spack/concretize.py b/lib/spack/spack/concretize.py index 296b5b1273..044dbe5fb2 100644 --- a/lib/spack/spack/concretize.py +++ b/lib/spack/spack/concretize.py @@ -587,6 +587,6 @@ class NoBuildError(spack.error.SpackError): no satisfactory external versions can be found""" def __init__(self, spec): - msg = ("The spec '%s' is configured as not buildable, " + msg = ("The spec\n '%s'\n is configured as not buildable, " "and no matching external installs were found") - super(NoBuildError, self).__init__(msg % spec.name) + super(NoBuildError, self).__init__(msg % spec) |