aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorMike McQuaid2018-01-17 10:50:48 +0000
committerMike McQuaid2018-01-17 10:50:48 +0000
commit17c24d040bc2a488b9bd70546cf0ef4f6d81d3bc (patch)
tree6230e716fe72527ced04570e46bf1d474a9355bf /Library
parent3e8b0577fae5aaa3afaa3d38aae9d1ff55207412 (diff)
downloadbrew-17c24d040bc2a488b9bd70546cf0ef4f6d81d3bc.tar.bz2
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.
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/utils.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/Library/Homebrew/utils.rb b/Library/Homebrew/utils.rb
index c6e7d22df..a1fb0d235 100644
--- a/Library/Homebrew/utils.rb
+++ b/Library/Homebrew/utils.rb
@@ -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