api: improve root messaging.
Co-authored-by: Bo Anderson <mail@boanderson.me>
This commit is contained in:
parent
2884b1649b
commit
57ef4afe57
@ -43,7 +43,7 @@ module Homebrew
|
|||||||
|
|
||||||
if Homebrew.running_as_root_but_not_owned_by_root? &&
|
if Homebrew.running_as_root_but_not_owned_by_root? &&
|
||||||
(!target.exist? || target.empty?)
|
(!target.exist? || target.empty?)
|
||||||
odie "Need to download #{url} but cannot as root! Try again without `sudo`."
|
odie "Need to download #{url} but cannot as root! Run `brew update` without `sudo` first then try again."
|
||||||
end
|
end
|
||||||
|
|
||||||
# TODO: consider using more of Utils::Curl
|
# TODO: consider using more of Utils::Curl
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user