From e450612188aa1e6f48d4888c7ec97c18ad075157 Mon Sep 17 00:00:00 2001 From: eugeneswalker <38933153+eugeneswalker@users.noreply.github.com> Date: Mon, 5 Jul 2021 23:40:24 -0700 Subject: installer: fix double print of exception (#24697) --- lib/spack/spack/installer.py | 1 + 1 file changed, 1 insertion(+) (limited to 'lib') diff --git a/lib/spack/spack/installer.py b/lib/spack/spack/installer.py index 50218be5b9..6e812959f9 100644 --- a/lib/spack/spack/installer.py +++ b/lib/spack/spack/installer.py @@ -1618,6 +1618,7 @@ class PackageInstaller(object): # package as a failure. if (not isinstance(exc, spack.error.SpackError) or not exc.printed): + exc.printed = True # SpackErrors can be printed by the build process or at # lower levels -- skip printing if already printed. # TODO: sort out this and SpackError.print_context() -- cgit v1.2.3-60-g2f50