Merge pull request #15149 from issyl0/more-noisy-on-unknown-cask-methods

This commit is contained in:
Issy Long 2023-04-04 17:54:30 +01:00 committed by GitHub
commit 8adaada399
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -104,7 +104,7 @@ module Cask
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

View File

@ -20,10 +20,10 @@ describe Cask::DSL, :cask do
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\\.
.*