From 7eddf3ae9bad675e3ef365b5f5ba4f5b25173e70 Mon Sep 17 00:00:00 2001 From: Peter Scheibel Date: Fri, 29 Oct 2021 14:14:41 -0700 Subject: For Spack commands that fail but don't throw exceptions, we were discarding the return code (#27077) --- lib/spack/spack/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/spack/spack/main.py b/lib/spack/spack/main.py index c341271c02..1eeec8827b 100644 --- a/lib/spack/spack/main.py +++ b/lib/spack/spack/main.py @@ -873,7 +873,7 @@ def main(argv=None): """ try: - _main(argv) + return _main(argv) except SpackError as e: tty.debug(e) -- cgit v1.2.3-70-g09d2