diff options
| author | Jack Nagel | 2015-04-21 20:46:02 -0400 | 
|---|---|---|
| committer | Jack Nagel | 2015-04-21 20:46:02 -0400 | 
| commit | c8cd720e200749f66f52cd9348d4b109d28bdfdd (patch) | |
| tree | 6dd207d75e3931e77153900aa020eb1e8b501a40 /Library/brew.rb | |
| parent | de5df902f008599d51a16c5ad9bb173e51e1bc42 (diff) | |
| download | homebrew-c8cd720e200749f66f52cd9348d4b109d28bdfdd.tar.bz2 | |
Inline error message
Diffstat (limited to 'Library/brew.rb')
| -rwxr-xr-x | Library/brew.rb | 7 | 
1 files changed, 6 insertions, 1 deletions
| diff --git a/Library/brew.rb b/Library/brew.rb index 64006cc81..d095744f6 100755 --- a/Library/brew.rb +++ b/Library/brew.rb @@ -102,7 +102,12 @@ begin    if sudo_check.include? cmd      if Process.uid.zero? and not File.stat(HOMEBREW_BREW_FILE).uid.zero? -      raise "Cowardly refusing to `sudo brew #{cmd}`\n#{SUDO_BAD_ERRMSG}" +      raise <<-EOS.undent +        Cowardly refusing to `sudo brew #{cmd}` +        You can use brew with sudo, but only if the brew executable is owned by root. +        However, this is both not recommended and completely unsupported so do so at +        your own risk. +        EOS      end    end | 
