Merge pull request #9429 from hyuraku/repair-brew-edit-error-message

add path name to brew edit error message
This commit is contained in:
Markus Reiter 2020-12-14 17:14:00 +01:00 committed by GitHub
commit dc2006d5ff
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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.