diff --git a/command/pr.go b/command/pr.go index 062664c72..a5c761eeb 100644 --- a/command/pr.go +++ b/command/pr.go @@ -277,7 +277,7 @@ func prView(cmd *cobra.Command, args []string) error { if err != nil { return err } - return fmt.Errorf("no open pull requests found for branch %q. To open a specific PR use a PR number as an argument", branch) + return fmt.Errorf("no open pull requests found for branch %q. To open a specific pull request use the pull request's number as an argument", branch) } openURL = pr.URL } diff --git a/command/pr_test.go b/command/pr_test.go index eb97d2bd5..dadeeada0 100644 --- a/command/pr_test.go +++ b/command/pr_test.go @@ -217,7 +217,7 @@ func TestPRView_noResultsForBranch(t *testing.T) { defer restoreCmd() _, err := RunCommand(prViewCmd, "pr view") - if err == nil || err.Error() != `no open pull requests found for branch "blueberries". To open a specific PR use a PR number as an argument` { + if err == nil || err.Error() != `no open pull requests found for branch "blueberries". To open a specific pull request use the pull request's number as an argument` { t.Errorf("error running command `pr view`: %v", err) }