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:
parent
3e8b0577fa
commit
17c24d040b
@ -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
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user