From 598c5e36f910d2e14bb77fd3ae5c2f0155e156bd Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Sat, 10 Dec 2016 13:04:14 +0000 Subject: Tell people to report URL/tap deprecations to the tap. Rather than Homebrew/brew or Homebrew/homebrew-core. --- Library/Homebrew/brew.rb | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'Library/Homebrew/brew.rb') 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 -- cgit v1.2.3