diff --git a/var/spack/repos/builtin/packages/python/package.py b/var/spack/repos/builtin/packages/python/package.py index 5eeb2913c6d..fd3b383bea5 100644 --- a/var/spack/repos/builtin/packages/python/package.py +++ b/var/spack/repos/builtin/packages/python/package.py @@ -1035,8 +1035,8 @@ def libs(self): return lib raise spack.error.NoLibrariesError( - "Unable to find {} libraries with the following names:".format(self.name), - "\n".join(candidates), + "Unable to find {} libraries with the following names:\n\n* ".format(self.name) + + "\n* ".join(candidates) ) @property @@ -1061,8 +1061,8 @@ def headers(self): break else: raise spack.error.NoHeadersError( - "Unable to locate {} headers in any of these locations:".format(self.name), - "\n".join(candidates), + "Unable to locate {} headers in any of these locations:\n\n* ".format(self.name) + + "\n* ".join(candidates) ) headers.directories = [os.path.dirname(config_h)]