versions: add debug output
This commit is contained in:
parent
d274f7a8a0
commit
47a8a312e3
@ -70,10 +70,10 @@ class Formula
|
||||
begin
|
||||
Object.send(:remove_const, Formula.class_s(name))
|
||||
nostdout { Formula.factory(path).version }
|
||||
rescue SyntaxError, TypeError, NameError, ArgumentError
|
||||
rescue SyntaxError, TypeError, NameError, ArgumentError => e
|
||||
# We rescue these so that we can skip bad versions and
|
||||
# continue walking the history
|
||||
nil
|
||||
ohai "#{e} in #{name} at revision #{sha}", e.backtrace if ARGV.debug?
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user