summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorMassimiliano Culpo <massimiliano.culpo@googlemail.com>2017-05-03 06:21:37 +0200
committerGitHub <noreply@github.com>2017-05-03 06:21:37 +0200
commitae9a9e019a73cb951d4d2a2585ac71a53f351c81 (patch)
tree34e2c1fb2c4b3f519c699a9c7ecba046be5a1698 /bin
parent72d45f7a446a6293ff675fce652a62f27ef2ed77 (diff)
downloadspack-ae9a9e019a73cb951d4d2a2585ac71a53f351c81.tar.gz
spack-ae9a9e019a73cb951d4d2a2585ac71a53f351c81.tar.bz2
spack-ae9a9e019a73cb951d4d2a2585ac71a53f351c81.tar.xz
spack-ae9a9e019a73cb951d4d2a2585ac71a53f351c81.zip
spack: no stacktrace if not in debug mode + fix emacs variant (#4098)
* spack: no stacktrace if not in debug mode + fix emacs variant * emacs: removed dead code
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.")