utils: check raise deprecation exceptions value.
This commit is contained in:
parent
e091e74c0c
commit
c56625f8b7
@ -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"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user