api: improve root messaging.

Co-authored-by: Bo Anderson <mail@boanderson.me>
This commit is contained in:
Mike McQuaid 2023-02-23 12:48:18 +00:00 committed by GitHub
parent 2884b1649b
commit 57ef4afe57
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -43,7 +43,7 @@ module Homebrew
if Homebrew.running_as_root_but_not_owned_by_root? &&
(!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
# TODO: consider using more of Utils::Curl