Merge pull request #6003 from carlosedp/doctor-message

Improve error message on cask doctor
This commit is contained in:
Mike McQuaid 2019-04-09 21:55:04 +01:00 committed by GitHub
commit a59fde6925
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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)