summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
Diffstat (limited to 'bin')
-rwxr-xr-xbin/spack4
1 files changed, 3 insertions, 1 deletions
diff --git a/bin/spack b/bin/spack
index b922fc5479..fb9f045f35 100755
--- a/bin/spack
+++ b/bin/spack
@@ -96,8 +96,10 @@ 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:
- # Otherwise print a nice simple message.
tty.die(e.message)
+
except KeyboardInterrupt:
tty.die("Got a keyboard interrupt from the user.")