diff options
author | Peter Scheibel <scheibel1@llnl.gov> | 2021-10-29 14:14:41 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-29 14:14:41 -0700 |
commit | 7eddf3ae9bad675e3ef365b5f5ba4f5b25173e70 (patch) | |
tree | 145fbf5770796afdce910c018692b861cfbd2d8d /lib | |
parent | b9e63c9f4208d36f4d450a61b4621daa3901c7d5 (diff) | |
download | spack-7eddf3ae9bad675e3ef365b5f5ba4f5b25173e70.tar.gz spack-7eddf3ae9bad675e3ef365b5f5ba4f5b25173e70.tar.bz2 spack-7eddf3ae9bad675e3ef365b5f5ba4f5b25173e70.tar.xz spack-7eddf3ae9bad675e3ef365b5f5ba4f5b25173e70.zip |
For Spack commands that fail but don't throw exceptions, we were discarding the return code (#27077)
Diffstat (limited to 'lib')
-rw-r--r-- | lib/spack/spack/main.py | 2 |
1 files changed, 1 insertions, 1 deletions
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) |