From 01ec40b8ad4f50fa18264d9d1575e39d9275d2a0 Mon Sep 17 00:00:00 2001 From: Todd Gamblin Date: Tue, 22 Oct 2024 20:10:05 -0700 Subject: [PATCH] check for backtrace instead of debug Signed-off-by: Todd Gamblin --- lib/spack/spack/installer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/spack/spack/installer.py b/lib/spack/spack/installer.py index fe071691da6..b9e07c73eb9 100644 --- a/lib/spack/spack/installer.py +++ b/lib/spack/spack/installer.py @@ -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__)