From 2cecc3bd517d8d411ea17bbf14c988b6478005e2 Mon Sep 17 00:00:00 2001 From: Max Howell Date: Tue, 28 Aug 2012 20:14:44 -0400 Subject: [PATCH] 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. --- bin/brew | 1 + 1 file changed, 1 insertion(+) diff --git a/bin/brew b/bin/brew index 27596b22ee..efed2c8a56 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