use odie when commands encounter errors

This commit is contained in:
EricFromCanada
2021-01-26 15:36:43 -05:00
parent a72ddfdc67
commit 2e982cd2a2
10 changed files with 15 additions and 14 deletions
+2 -2
View File
@@ -180,7 +180,7 @@ module Homebrew
# unless --force is specified.
unless args.force?
if reason = MissingFormula.disallowed_reason(fc.name)
raise <<~EOS
odie <<~EOS
The formula '#{fc.name}' is not allowed to be created.
#{reason}
If you really want to create this formula use `--force`.
@@ -189,7 +189,7 @@ module Homebrew
if Formula.aliases.include? fc.name
realname = Formulary.canonical_name(fc.name)
raise <<~EOS
odie <<~EOS
The formula '#{realname}' is already aliased to '#{fc.name}'.
Please check that you are not creating a duplicate.
To force creation use `--force`.