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
commit9aa121addd86460b6e1594c1c57875e746f56694 (patch)
tree1eddf97b573e14d0ada9ca4beb4e9f0d5365474d /bin
parent6fca47ae5f2d0dc989098b9165d5cd0099e300a7 (diff)
downloadhomebrew-9aa121addd86460b6e1594c1c57875e746f56694.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