From ee2e2bc74b1f73db81136fa2077fabd97a860410 Mon Sep 17 00:00:00 2001 From: Jack Nagel Date: Thu, 21 Mar 2013 17:04:05 -0500 Subject: versions: add debug output --- Library/Homebrew/cmd/versions.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Library') diff --git a/Library/Homebrew/cmd/versions.rb b/Library/Homebrew/cmd/versions.rb index 40e908172..f6aaea77c 100644 --- a/Library/Homebrew/cmd/versions.rb +++ b/Library/Homebrew/cmd/versions.rb @@ -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 -- cgit v1.2.3