mirror of
https://github.com/gosticks/brew.git
synced 2026-08-12 12:40:22 +00:00
add path name to brew edit error message
This commit is contained in:
@@ -46,7 +46,8 @@ module Homebrew
|
||||
next path if path.exist?
|
||||
|
||||
raise UsageError, "#{path} doesn't exist on disk. " \
|
||||
"Run #{Formatter.identifier("brew create $URL")} to create a new Formula!"
|
||||
"Run #{Formatter.identifier("brew create --set-name #{path.basename} $URL")} " \
|
||||
"to create a new Formula!"
|
||||
end.presence
|
||||
|
||||
# If no brews are listed, open the project root in an editor.
|
||||
|
||||
Reference in New Issue
Block a user