installer: fix double print of exception (#24697)

This commit is contained in:
eugeneswalker
2021-07-05 23:40:24 -07:00
committed by GitHub
parent 115c39e762
commit e450612188

View File

@@ -1618,6 +1618,7 @@ def install(self):
# package as a failure. # package as a failure.
if (not isinstance(exc, spack.error.SpackError) or if (not isinstance(exc, spack.error.SpackError) or
not exc.printed): not exc.printed):
exc.printed = True
# SpackErrors can be printed by the build process or at # SpackErrors can be printed by the build process or at
# lower levels -- skip printing if already printed. # lower levels -- skip printing if already printed.
# TODO: sort out this and SpackError.print_context() # TODO: sort out this and SpackError.print_context()