From 5a10f2350ffa4076fefd3418f2743588c8058cfb Mon Sep 17 00:00:00 2001 From: Corey Johnson Date: Wed, 16 Oct 2019 16:26:05 -0700 Subject: [PATCH] Don't treat no active PR as an error --- command/pr.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/command/pr.go b/command/pr.go index a4966f5fb..7777f095d 100644 --- a/command/pr.go +++ b/command/pr.go @@ -91,7 +91,8 @@ func prView(cmd *cobra.Command, args []string) error { return err } else if prPayload.CurrentPR == nil { branch := currentBranch() - return fmt.Errorf("The [%s] branch has no open PRs", branch) + fmt.Printf("The [%s] branch has no open PRs", branch) + return nil } openURL = prPayload.CurrentPR.URL }