Python: fix library/header error msg format (#39171)
This commit is contained in:
parent
5d8482598b
commit
df2938dfcf
1 changed files with 4 additions and 4 deletions
|
@ -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)]
|
||||
|
|
Loading…
Reference in a new issue