aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/utils.rb
diff options
context:
space:
mode:
authorMike McQuaid2016-08-12 21:06:41 +0100
committerMike McQuaid2016-08-12 21:06:41 +0100
commitc56625f8b76f5e33ac5e086af4c9d3d79c593218 (patch)
treede0392605f38dd071e79609cc180adf4e775fd94 /Library/Homebrew/utils.rb
parente091e74c0c4eef1f75ea3dc7ca93a19fac295cdf (diff)
downloadbrew-c56625f8b76f5e33ac5e086af4c9d3d79c593218.tar.bz2
utils: check raise deprecation exceptions value.
Diffstat (limited to 'Library/Homebrew/utils.rb')
-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 f78fbfcb7..a3a3378b6 100644
--- a/Library/Homebrew/utils.rb
+++ b/Library/Homebrew/utils.rb
@@ -149,7 +149,8 @@ def odeprecated(method, replacement = nil, options = {})
#{caller_message}#{tap_message}
EOS
- if ARGV.homebrew_developer? || options[:die]
+ if ARGV.homebrew_developer? || options[:die] ||
+ Homebrew.raise_deprecation_exceptions?
raise FormulaMethodDeprecatedError, message
else
opoo "#{message}\n"