clarify error msg
This commit is contained in:
parent
5dbec25f44
commit
8a5290d2b4
2 changed files with 2 additions and 2 deletions
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -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")
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue