mirror of
https://github.com/gosticks/brew.git
synced 2026-08-13 13:10:30 +00:00
use odie when commands encounter errors
This commit is contained in:
@@ -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`.
|
||||
|
||||
Reference in New Issue
Block a user