diff options
| author | Mike McQuaid | 2016-08-12 21:06:41 +0100 |
|---|---|---|
| committer | Mike McQuaid | 2016-08-12 21:06:41 +0100 |
| commit | c56625f8b76f5e33ac5e086af4c9d3d79c593218 (patch) | |
| tree | de0392605f38dd071e79609cc180adf4e775fd94 /Library/Homebrew/utils.rb | |
| parent | e091e74c0c4eef1f75ea3dc7ca93a19fac295cdf (diff) | |
| download | brew-c56625f8b76f5e33ac5e086af4c9d3d79c593218.tar.bz2 | |
utils: check raise deprecation exceptions value.
Diffstat (limited to 'Library/Homebrew/utils.rb')
| -rw-r--r-- | Library/Homebrew/utils.rb | 3 |
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" |
