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)