aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorMax Howell2012-08-01 16:19:25 -0400
committerMax Howell2012-08-01 16:19:25 -0400
commitea6bfb66a103e5ff569eba4b53f388dda8bdf039 (patch)
tree18ff43879ae9b2be27a42d9844b88158c51888c0 /Library
parentb51fe2241383130324ebc291e8d48855b14737cc (diff)
downloadbrew-ea6bfb66a103e5ff569eba4b53f388dda8bdf039.tar.bz2
Error handling for individual taps
Possibly would help diagnose: Homebrew/homebrew#13853.
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/cmd/update.rb13
1 files changed, 9 insertions, 4 deletions
diff --git a/Library/Homebrew/cmd/update.rb b/Library/Homebrew/cmd/update.rb
index 428014291..9e091d52f 100644
--- a/Library/Homebrew/cmd/update.rb
+++ b/Library/Homebrew/cmd/update.rb
@@ -20,10 +20,15 @@ module Homebrew extend self
new_files = []
Dir["Library/Taps/*"].each do |tapd|
cd tapd do
- updater = Updater.new
- updater.pull!
- report.merge!(updater.report) do |key, oldval, newval|
- oldval.concat(newval)
+ begin
+ updater = Updater.new
+ updater.pull!
+ report.merge!(updater.report) do |key, oldval, newval|
+ oldval.concat(newval)
+ end
+ rescue
+ tapd =~ %r{^Library/Taps/(\w+)-(\w+)}
+ onoe "Failed to update tap: #$1/#$2"
end
end
end