Python: fix library/header error msg format (#39171)
This commit is contained in:
parent
5d8482598b
commit
df2938dfcf
@ -1035,8 +1035,8 @@ def libs(self):
|
|||||||
return lib
|
return lib
|
||||||
|
|
||||||
raise spack.error.NoLibrariesError(
|
raise spack.error.NoLibrariesError(
|
||||||
"Unable to find {} libraries with the following names:".format(self.name),
|
"Unable to find {} libraries with the following names:\n\n* ".format(self.name)
|
||||||
"\n".join(candidates),
|
+ "\n* ".join(candidates)
|
||||||
)
|
)
|
||||||
|
|
||||||
@property
|
@property
|
||||||
@ -1061,8 +1061,8 @@ def headers(self):
|
|||||||
break
|
break
|
||||||
else:
|
else:
|
||||||
raise spack.error.NoHeadersError(
|
raise spack.error.NoHeadersError(
|
||||||
"Unable to locate {} headers in any of these locations:".format(self.name),
|
"Unable to locate {} headers in any of these locations:\n\n* ".format(self.name)
|
||||||
"\n".join(candidates),
|
+ "\n* ".join(candidates)
|
||||||
)
|
)
|
||||||
|
|
||||||
headers.directories = [os.path.dirname(config_h)]
|
headers.directories = [os.path.dirname(config_h)]
|
||||||
|
Loading…
Reference in New Issue
Block a user