summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorTodd Gamblin <tgamblin@llnl.gov>2014-04-13 16:38:15 -0700
committerTodd Gamblin <tgamblin@llnl.gov>2014-04-13 16:38:15 -0700
commit59a3b8dc67fcfd7f82de1fbd6fe6a1fafb66b115 (patch)
tree2e44e143e44fefa443d9968882b482276bb5f7d6 /bin
parent980c1f0e470e2c0ae21c4f253995a117486ef067 (diff)
downloadspack-59a3b8dc67fcfd7f82de1fbd6fe6a1fafb66b115.tar.gz
spack-59a3b8dc67fcfd7f82de1fbd6fe6a1fafb66b115.tar.bz2
spack-59a3b8dc67fcfd7f82de1fbd6fe6a1fafb66b115.tar.xz
spack-59a3b8dc67fcfd7f82de1fbd6fe6a1fafb66b115.zip
Make SSL verification failures recommend spack -k
- Adds optional long message to SpackError - tty now wraps long message text.
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.")