Skip to content
Snippets Groups Projects
Commit b306f14b authored by Markus Reiter's avatar Markus Reiter
Browse files

Rename FormulaMethodDeprecatedError to MethodDeprecatedError.

parent 0c3bb42a
No related branches found
No related tags found
No related merge requests found
......@@ -56,7 +56,7 @@ end
class FormulaSpecificationError < StandardError; end
class FormulaMethodDeprecatedError < StandardError; end
class MethodDeprecatedError < StandardError; end
class FormulaUnavailableError < RuntimeError
attr_reader :name
......
......@@ -4,7 +4,7 @@ class FormulaVersions
IGNORED_EXCEPTIONS = [
ArgumentError, NameError, SyntaxError, TypeError,
FormulaSpecificationError, FormulaValidationError,
ErrorDuringExecution, LoadError, FormulaMethodDeprecatedError
ErrorDuringExecution, LoadError, MethodDeprecatedError
].freeze
attr_reader :name, :path, :repository, :entry_name
......
......@@ -249,7 +249,7 @@ class UtilTests < Homebrew::TestCase
def test_odeprecated
ARGV.stubs(:homebrew_developer?).returns false
e = assert_raises(FormulaMethodDeprecatedError) do
e = assert_raises(MethodDeprecatedError) do
odeprecated("method", "replacement",
caller: ["#{HOMEBREW_LIBRARY}/Taps/homebrew/homebrew-core/"],
die: true)
......
......@@ -83,7 +83,7 @@ def odeprecated(method, replacement = nil, options = {})
if ARGV.homebrew_developer? || options[:die] ||
Homebrew.raise_deprecation_exceptions?
raise FormulaMethodDeprecatedError, message
raise MethodDeprecatedError, message
else
opoo "#{message}\n"
end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment