Merge pull request #6003 from carlosedp/doctor-message
Improve error message on cask doctor
This commit is contained in:
commit
a59fde6925
@ -65,6 +65,7 @@ module Cask
|
|||||||
|
|
||||||
if path.exist? && !path.writable?
|
if path.exist? && !path.writable?
|
||||||
add_error "The staging path #{user_tilde(path.to_s)} is not writable by the current user."
|
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
|
end
|
||||||
|
|
||||||
puts user_tilde(path.to_s)
|
puts user_tilde(path.to_s)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user