diff --git a/lib/spack/spack/installer.py b/lib/spack/spack/installer.py index 50218be5b9b..6e812959f98 100644 --- a/lib/spack/spack/installer.py +++ b/lib/spack/spack/installer.py @@ -1618,6 +1618,7 @@ def install(self): # 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()