A nice error
This commit is contained in:
parent
2df7c2d86f
commit
ef61b49575
1 changed files with 2 additions and 1 deletions
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue