aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorJack Nagel2013-06-26 13:02:44 -0500
committerJack Nagel2013-06-26 13:02:48 -0500
commit0d35455820f6f3a38fce298262cf23a236906523 (patch)
tree65bc25ca5b662b55dac6f1fcb44f3e241ba28314 /Library
parentc8ae97dde84b8a12cafeff0b73a7def546dce281 (diff)
downloadbrew-0d35455820f6f3a38fce298262cf23a236906523.tar.bz2
Formula.each: note why import failed
Refs Homebrew/homebrew#20819.
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/formula.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/Library/Homebrew/formula.rb b/Library/Homebrew/formula.rb
index cec9857f7..27cf1d64a 100644
--- a/Library/Homebrew/formula.rb
+++ b/Library/Homebrew/formula.rb
@@ -335,9 +335,10 @@ class Formula
names.each do |name|
begin
yield Formula.factory(name)
- rescue
+ rescue StandardError => e
# Don't let one broken formula break commands. But do complain.
onoe "Failed to import: #{name}"
+ puts e
next
end
end