Only show full exception bt for --debug or -d

I agree with Adam, this makes sense.
This commit is contained in:
Max Howell 2009-08-11 18:17:11 +01:00
parent a2066af2fd
commit 5752dd23ed

View File

@ -131,7 +131,7 @@ rescue Interrupt => e
puts # seemingly a newline is typical
exit 130
rescue SystemCallError, RuntimeError => e
if ARGV.verbose? or ARGV.debug?
if ARGV.debug?
onoe e.inspect
puts e.backtrace
else