check for backtrace instead of debug
Signed-off-by: Todd Gamblin <tgamblin@llnl.gov>
This commit is contained in:
parent
4d0a5ae724
commit
01ec40b8ad
@ -2242,7 +2242,7 @@ def install(self) -> None:
|
||||
if failed_build_requests or missing:
|
||||
for _, pkg_id, err in failed_build_requests:
|
||||
tty.error(f"{pkg_id}: {err}")
|
||||
if spack.error.debug:
|
||||
if spack.error.SHOW_BACKTRACE:
|
||||
# note: in python 3.10+ this can just be print_exception(err)
|
||||
traceback.print_exception(type(err), err, err.__traceback__)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user