utils: tell developers to submit odeprecated PRs.

Rather than just telling them to submit an issue as it's likely that
as these folks will be able to submit a PR.
This commit is contained in:
Mike McQuaid 2018-01-17 10:50:48 +00:00
parent 3e8b0577fa
commit 17c24d040b

View File

@ -101,7 +101,8 @@ def odeprecated(method, replacement = nil, disable: false, disable_on: nil, call
if ARGV.homebrew_developer? || disable || if ARGV.homebrew_developer? || disable ||
Homebrew.raise_deprecation_exceptions? Homebrew.raise_deprecation_exceptions?
raise MethodDeprecatedError, message developer_message = message + "Or, even better, submit a PR to fix it!"
raise MethodDeprecatedError, developer_message
elsif !Homebrew.auditing? elsif !Homebrew.auditing?
opoo "#{message}\n" opoo "#{message}\n"
end end