Skip to content

Commit

Permalink
Merge pull request #15149 from issyl0/more-noisy-on-unknown-cask-methods
Browse files Browse the repository at this point in the history
  • Loading branch information
issyl0 committed Apr 4, 2023
2 parents 41e7ee7 + 7cfa544 commit 8adaada
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Library/Homebrew/cask/utils.rb
Expand Up @@ -104,7 +104,7 @@ def self.method_missing_message(method, token, section = nil)
message << "during #{section} " if section
message << "on Cask #{token}."

opoo "#{message}\n#{error_message_with_suggestions}"
ofail "#{message}\n#{error_message_with_suggestions}"
end
end
end
4 changes: 2 additions & 2 deletions Library/Homebrew/test/cask/dsl_spec.rb
Expand Up @@ -20,10 +20,10 @@
end
end

it "prints a warning that it has encountered an unexpected method" do
it "prints an error that it has encountered an unexpected method" do
expected = Regexp.compile(<<~EOS.lines.map(&:chomp).join)
(?m)
Warning:
Error:
.*
Unexpected method 'future_feature' called on Cask unexpected-method-cask\\.
.*
Expand Down

0 comments on commit 8adaada

Please sign in to comment.