Improve messaging

Co-authored-by: Eric Knibbe <3324775+EricFromCanada@users.noreply.github.com>
This commit is contained in:
Rylan Polster 2021-10-22 17:15:19 -04:00
parent 0b8032d421
commit 06b1e1f495
No known key found for this signature in database
GPG Key ID: 46A744940CFF4D64

View File

@ -116,11 +116,12 @@ begin
end
if internal_dev_cmd && Homebrew::EnvConfig.install_from_api?
odie "Developer commands cannot be run while `HOMEBREW_INSTALL_FROM_API` is set!"
odie "Developer commands cannot be run while HOMEBREW_INSTALL_FROM_API is set!"
elsif Homebrew::EnvConfig.install_from_api? && developer_mode
opoo <<~MESSAGE
Developers should not have `HOMEBREW_INSTALL_FROM_API` set! Please unset
`HOMEBREW_INSTALL_FROM_API` or turn developer mode off by running #{Tty.bold}brew developer off#{Tty.reset}
Developers should not have HOMEBREW_INSTALL_FROM_API set!
Please unset HOMEBREW_INSTALL_FROM_API or turn developer mode off by running:
brew developer off
MESSAGE
end