check for backtrace instead of debug

Signed-off-by: Todd Gamblin <tgamblin@llnl.gov>
This commit is contained in:
Todd Gamblin 2024-10-22 20:10:05 -07:00
parent 4d0a5ae724
commit 01ec40b8ad
No known key found for this signature in database
GPG Key ID: C16729F1AACF66C6

View File

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