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:
parent
5878b418c5
commit
daac376862
@ -587,6 +587,6 @@ class NoBuildError(spack.error.SpackError):
|
|||||||
no satisfactory external versions can be found"""
|
no satisfactory external versions can be found"""
|
||||||
|
|
||||||
def __init__(self, spec):
|
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")
|
"and no matching external installs were found")
|
||||||
super(NoBuildError, self).__init__(msg % spec.name)
|
super(NoBuildError, self).__init__(msg % spec)
|
||||||
|
Loading…
Reference in New Issue
Block a user