diff --git a/Library/Homebrew/cask/cmd/doctor.rb b/Library/Homebrew/cask/cmd/doctor.rb index 353ce7b8fc..ec1b00fd1e 100644 --- a/Library/Homebrew/cask/cmd/doctor.rb +++ b/Library/Homebrew/cask/cmd/doctor.rb @@ -65,6 +65,7 @@ module Cask if path.exist? && !path.writable? add_error "The staging path #{user_tilde(path.to_s)} is not writable by the current user." + add_error "To fix, run \'sudo chown -R ${USER}:staff #{user_tilde(path.to_s)}'" end puts user_tilde(path.to_s)