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
This commit is contained in:
Greg Becker 2019-07-23 13:58:07 -05:00 committed by GitHub
parent 5878b418c5
commit daac376862
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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)