A nice error

This commit is contained in:
Corey Johnson 2019-10-15 15:01:01 -07:00
parent 2df7c2d86f
commit ef61b49575

View file

@ -90,7 +90,8 @@ func prView(cmd *cobra.Command, args []string) error {
} else {
prPayload, err := api.PullRequests()
if err != nil {
return err
branch := currentBranch()
return fmt.Errorf("The [%s] branch has no open PRs", branch)
}
openURL = prPayload.CurrentPR.URL
}