Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions cmd/submit.go
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,8 @@ func runSubmit(cfg config.Config, flags *pflag.FlagSet, args []string) error {

%s

Please provide the path to the file you wish to submit, e.g. : exercism submit FILENAME
Comment thread
sfairchild marked this conversation as resolved.
Outdated

`
return fmt.Errorf(msg, arg)
}
Expand Down
1 change: 1 addition & 0 deletions cmd/submit_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,7 @@ func TestSubmitFilesAndDir(t *testing.T) {
}
err = runSubmit(cfg, pflag.NewFlagSet("fake", pflag.PanicOnError), files)
assert.Regexp(t, "submitting a directory", err.Error())
assert.Regexp(t, "Please provide the path to the file you wish to submit", err.Error())
}

func TestSubmitFiles(t *testing.T) {
Expand Down