add path name to brew edit error message

This commit is contained in:
hyuraku
2020-12-08 22:48:29 +09:00
parent 3fc8c703f2
commit c8a8b79730
+2 -1
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.