exceptions: improve tap error message.

Point users to the tap's issue tracker URL.
This commit is contained in:
Mike McQuaid 2013-11-11 18:09:02 +00:00
parent 8939857600
commit 6af4ab44c6

View File

@ -183,7 +183,10 @@ class BuildError < Homebrew::InstallationError
puts puts
puts "#{Tty.red}READ THIS#{Tty.reset}: #{Tty.em}#{ISSUES_URL}#{Tty.reset}" puts "#{Tty.red}READ THIS#{Tty.reset}: #{Tty.em}#{ISSUES_URL}#{Tty.reset}"
if formula.tap? if formula.tap?
puts "If reporting this please do so at the #{formula.tap} tap (not mxcl/homebrew)." user, repo = formula.tap.split '/'
tap_issues_url = "https://github.com/#{user}/homebrew-#{repo}/issues"
puts "If reporting this issue please do so at (not mxcl/homebrew):"
puts " #{tap_issues_url}"
end end
else else
require 'cmd/--config' require 'cmd/--config'