mirror of
https://github.com/Homebrew/brew.git
synced 2025-07-14 16:09:03 +08:00
add path name to brew edit error message
This commit is contained in:
parent
3fc8c703f2
commit
c8a8b79730
@ -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.
|
||||
|
Loading…
x
Reference in New Issue
Block a user