aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/brew.rb
diff options
context:
space:
mode:
authorMike McQuaid2016-12-10 13:04:14 +0000
committerMike McQuaid2016-12-10 13:04:14 +0000
commit598c5e36f910d2e14bb77fd3ae5c2f0155e156bd (patch)
tree9d0dba067393d0f1c5125afab1d3945bd4c88bd3 /Library/Homebrew/brew.rb
parentf02491180b199c370d1f930eb6fa50326e14348a (diff)
downloadbrew-598c5e36f910d2e14bb77fd3ae5c2f0155e156bd.tar.bz2
Tell people to report URL/tap deprecations to the tap.
Rather than Homebrew/brew or Homebrew/homebrew-core.
Diffstat (limited to 'Library/Homebrew/brew.rb')
-rw-r--r--Library/Homebrew/brew.rb8
1 files changed, 8 insertions, 0 deletions
diff --git a/Library/Homebrew/brew.rb b/Library/Homebrew/brew.rb
index ac35feee8..ba43e65c4 100644
--- a/Library/Homebrew/brew.rb
+++ b/Library/Homebrew/brew.rb
@@ -138,6 +138,14 @@ rescue RuntimeError, SystemCallError => e
onoe e
$stderr.puts e.backtrace if ARGV.debug?
exit 1
+rescue MethodDeprecatedError => e
+ Utils::Analytics.report_exception(e)
+ onoe e
+ if e.issues_url
+ $stderr.puts "If reporting this issue please do so at (not Homebrew/brew or Homebrew/core):"
+ $stderr.puts " #{Formatter.url(e.issues_url)}"
+ end
+ exit 1
rescue Exception => e
Utils::Analytics.report_exception(e)
onoe e