Python: fix library/header error msg format (#39171)

This commit is contained in:
Adam J. Stewart 2023-08-02 05:14:30 -05:00 committed by GitHub
parent 5d8482598b
commit df2938dfcf
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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