diff options
author | Todd Gamblin <tgamblin@llnl.gov> | 2015-06-06 15:50:01 -0700 |
---|---|---|
committer | Todd Gamblin <tgamblin@llnl.gov> | 2015-06-06 15:50:01 -0700 |
commit | 53feb12ea078cd9661eca2311fdbc18b352ddc37 (patch) | |
tree | b11f0eaedb321af91a0d96932adb72ad689158b1 /bin | |
parent | b9746de52e62a6e11fabcd25ec7fbd9dbb9505d6 (diff) | |
download | spack-53feb12ea078cd9661eca2311fdbc18b352ddc37.tar.gz spack-53feb12ea078cd9661eca2311fdbc18b352ddc37.tar.bz2 spack-53feb12ea078cd9661eca2311fdbc18b352ddc37.tar.xz spack-53feb12ea078cd9661eca2311fdbc18b352ddc37.zip |
Cleanup and consolidate error handling
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/spack | 9 |
1 files changed, 1 insertions, 8 deletions
@@ -126,14 +126,7 @@ def main(): try: return_val = command(parser, args) except SpackError, e: - if spack.debug: - # In debug mode, raise with a full stack trace. - raise - elif e.long_message: - tty.die(e.message, e.long_message) - else: - tty.die(e.message) - + e.die() except KeyboardInterrupt: sys.stderr.write('\n') tty.die("Keyboard interrupt.") |