package: mention the package that is no concrete

This commit is contained in:
Ben Boeckel 2016-07-14 16:33:38 -04:00
parent a0584c78a8
commit faa3d43d9c

View File

@ -911,7 +911,7 @@ def do_install(self,
run_tests -- Runn tests within the package's install()
"""
if not self.spec.concrete:
raise ValueError("Can only install concrete packages.")
raise ValueError("Can only install concrete packages: %s." % self.spec.name)
# No installation needed if package is external
if self.spec.external: