From e910c039f0b619729d77c57ceb5b64da85d0ec3a Mon Sep 17 00:00:00 2001 From: AliabbasMerchant Date: Tue, 26 May 2020 07:50:59 +0530 Subject: [PATCH] Return error when it occurs --- command/pr_create.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/command/pr_create.go b/command/pr_create.go index 931187859..45ec801d4 100644 --- a/command/pr_create.go +++ b/command/pr_create.go @@ -3,7 +3,6 @@ package command import ( "errors" "fmt" - "log" "net/url" "strings" "time" @@ -403,7 +402,7 @@ func determineTrackingBranch(remotes context.Remotes, headBranch string) *git.Tr func withPrAndIssueQueryParams(baseURL, title, body string, assignees, labels, projects []string, milestone string) (string, error) { u, err := url.Parse(baseURL) if err != nil { - log.Fatal(err) + return "", nil } q := u.Query() if title != "" {