mirror of
https://github.com/gosticks/brew.git
synced 2026-10-06 23:46:56 +00:00
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:
@@ -101,7 +101,8 @@ def odeprecated(method, replacement = nil, disable: false, disable_on: nil, call
|
||||
|
||||
if ARGV.homebrew_developer? || disable ||
|
||||
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?
|
||||
opoo "#{message}\n"
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user