From c6cf100bc36b2b820255b1c01f61436e7a02dc64 Mon Sep 17 00:00:00 2001 From: Krisztian Godrei Date: Thu, 13 Jul 2017 16:19:02 +0200 Subject: [PATCH] better error message if pr fetch failed --- main.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/main.go b/main.go index 9c8aa511..97996530 100644 --- a/main.go +++ b/main.go @@ -153,6 +153,9 @@ func main() { return fetchErr }); err != nil { + if configs.PullRequestID != "" && configs.PullRequestMergeBranch != "" { + log.Warnf("Failed to fetch pull request, this happens most likely because the pull request is closed or has conflict.") + } log.Errorf("Failed, error: %s", err) os.Exit(1) }