clarify error msg

This commit is contained in:
vilmibm 2020-05-07 14:51:08 -05:00
parent 5dbec25f44
commit 8a5290d2b4
2 changed files with 2 additions and 2 deletions

View file

@ -53,7 +53,7 @@ func processReviewOpt(cmd *cobra.Command) (*api.PullRequestReviewInput, error) {
}
if found != 1 {
return nil, errors.New("need exactly one of approve, request-changes, or comment")
return nil, errors.New("need exactly one of --approve, --request-changes, or --comment")
}
val, err := cmd.Flags().GetString(flag)

View file

@ -17,7 +17,7 @@ func TestPRReview_validation(t *testing.T) {
} {
http.StubRepoResponse("OWNER", "REPO")
_, err := RunCommand(cmd)
eq(t, err.Error(), "did not understand desired review action: need exactly one of approve, request-changes, or comment")
eq(t, err.Error(), "did not understand desired review action: need exactly one of --approve, --request-changes, or --comment")
}
}