Skip to content
Merged
Show file tree
Hide file tree
Changes from all 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
6 changes: 5 additions & 1 deletion cmd/submit.go
Original file line number Diff line number Diff line change
Expand Up @@ -87,8 +87,12 @@ func runSubmit(cfg config.Config, flags *pflag.FlagSet, args []string) error {

%s

Please change into the directory and provide the path to the file(s) you wish to submit

%s submit FILENAME

`
return fmt.Errorf(msg, arg)
return fmt.Errorf(msg, arg, BinaryName)
}

src, err := filepath.EvalSymlinks(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 change into the directory and provide the path to the file\\(s\\) you wish to submit", err.Error())
}

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