From 76f02c52544f5391cfd380dc3eec2c3c5130ca50 Mon Sep 17 00:00:00 2001 From: Valere JEANTET Date: Thu, 21 Jul 2016 21:36:05 +0200 Subject: [PATCH] fix #1 jira search error does not display anything that could help to fix search request --- jobs/JiraIssueCount.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/jobs/JiraIssueCount.go b/jobs/JiraIssueCount.go index 565d6c2..1af3be4 100644 --- a/jobs/JiraIssueCount.go +++ b/jobs/JiraIssueCount.go @@ -134,7 +134,7 @@ func (j *jiraIssueCount) getNumberOfIssues(jql string) (int, error) { _, body, err := jiraClient.Issue.Search(jql, &options) if err != nil { - return 0, fmt.Errorf("JiraJob : error jira search : %s", err) + return 0, fmt.Errorf("JiraJob : search error : %s, %s", err, jql) } return body.Total, nil @@ -143,7 +143,7 @@ func (j *jiraIssueCount) getNumberOfIssues(jql string) (int, error) { func (j *jiraIssueCount) readIndicators(dashroot string) { //init empty Indicators - for k, _ := range j.config.Indicators.Items() { + for k := range j.config.Indicators.Items() { j.config.Indicators.Remove(k) }