Only show full exception bt for --debug or -d
I agree with Adam, this makes sense.
This commit is contained in:
parent
a2066af2fd
commit
5752dd23ed
2
bin/brew
2
bin/brew
@ -131,7 +131,7 @@ rescue Interrupt => e
|
|||||||
puts # seemingly a newline is typical
|
puts # seemingly a newline is typical
|
||||||
exit 130
|
exit 130
|
||||||
rescue SystemCallError, RuntimeError => e
|
rescue SystemCallError, RuntimeError => e
|
||||||
if ARGV.verbose? or ARGV.debug?
|
if ARGV.debug?
|
||||||
onoe e.inspect
|
onoe e.inspect
|
||||||
puts e.backtrace
|
puts e.backtrace
|
||||||
else
|
else
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user