diff options
| author | Jack Nagel | 2013-03-21 17:04:05 -0500 |
|---|---|---|
| committer | Jack Nagel | 2013-03-21 17:05:02 -0500 |
| commit | ee2e2bc74b1f73db81136fa2077fabd97a860410 (patch) | |
| tree | 46507c92963c83c4404127f225c2de3afaee7fd4 /Library/Homebrew/cmd | |
| parent | bf5d55a9d795aec913962103431d446b9ed2250e (diff) | |
| download | homebrew-ee2e2bc74b1f73db81136fa2077fabd97a860410.tar.bz2 | |
versions: add debug output
Diffstat (limited to 'Library/Homebrew/cmd')
| -rw-r--r-- | Library/Homebrew/cmd/versions.rb | 4 |
1 files changed, 2 insertions, 2 deletions
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 |
