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.
This commit is contained in:
Max Howell 2012-08-28 20:14:44 -04:00
parent 7d8954d74c
commit 2cecc3bd51

View File

@ -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