Clarify cause of the bug in messaging

Co-authored-by: Mike McQuaid <mike@mikemcquaid.com>
This commit is contained in:
Rylan Polster 2023-02-05 16:10:22 +01:00 committed by GitHub
parent 0fd1be9a8e
commit dde44ed37c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -150,7 +150,7 @@ module Cask
if !c.installed_caskfile.exist? && c.tap.to_s == "homebrew/cask" && if !c.installed_caskfile.exist? && c.tap.to_s == "homebrew/cask" &&
Homebrew::API::Cask.all_casks.key?(c.token) Homebrew::API::Cask.all_casks.key?(c.token)
odie <<~EOS odie <<~EOS
The cask '#{c.token}' was not properly installed and cannot be upgraded. To fix this, run: The cask '#{c.token}' was affected by a bug and cannot be upgraded as-is. To fix this, run:
brew reinstall --cask --force #{c.token} brew reinstall --cask --force #{c.token}
EOS EOS
end end