aboutsummaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorMax Howell2012-08-28 20:14:44 -0400
committerMax Howell2012-08-29 12:41:37 -0400
commit2cecc3bd517d8d411ea17bbf14c988b6478005e2 (patch)
treed1b11622608519173a7f7bd14fcf4e53d1453cb6 /bin
parent7d8954d74caf59fdc93dae255e3b5fee328c5972 (diff)
downloadbrew-2cecc3bd517d8d411ea17bbf14c988b6478005e2.tar.bz2
If exception has no message raise again
Shows full backtrace, which is useful. Now blank "raise" statements are the equivalent of admitting programmer error. The backtrace will be useful.
Diffstat (limited to 'bin')
-rwxr-xr-xbin/brew1
1 files changed, 1 insertions, 0 deletions
diff --git a/bin/brew b/bin/brew
index 27596b22e..efed2c8a5 100755
--- a/bin/brew
+++ b/bin/brew
@@ -109,6 +109,7 @@ rescue BuildError => e
e.dump
exit 1
rescue RuntimeError, SystemCallError => e
+ raise if e.message.empty?
onoe e
puts e.backtrace if ARGV.debug?
exit 1