From 57ef4afe5791307787cee4e00787535f82255bc3 Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Thu, 23 Feb 2023 12:48:18 +0000 Subject: [PATCH] api: improve root messaging. Co-authored-by: Bo Anderson --- Library/Homebrew/api.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Library/Homebrew/api.rb b/Library/Homebrew/api.rb index 3cef3bd355..9b60a85b3c 100644 --- a/Library/Homebrew/api.rb +++ b/Library/Homebrew/api.rb @@ -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