summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
Diffstat (limited to 'bin')
-rwxr-xr-xbin/spack2
1 files changed, 2 insertions, 0 deletions
diff --git a/bin/spack b/bin/spack
index 922e6a6be4..5ab805fe54 100755
--- a/bin/spack
+++ b/bin/spack
@@ -194,6 +194,8 @@ def _main(args, unknown_args):
return_val = command(parser, args)
except SpackError as e:
e.die()
+ except Exception as e:
+ tty.die(str(e))
except KeyboardInterrupt:
sys.stderr.write('\n')
tty.die("Keyboard interrupt.")