File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change 77 "strconv"
88 "time"
99
10+ "github.com/pkg/errors"
1011 log "github.com/sirupsen/logrus"
1112
1213 v1 "github.com/openshift-eng/ci-test-mapping/pkg/api/types/v1"
@@ -23,15 +24,15 @@ func GetJiraComponents() (map[string]int64, error) {
2324 var components []v1.JiraComponent
2425 err = json .Unmarshal (body , & components )
2526 if err != nil {
26- return nil , err
27+ return nil , errors . WithMessage ( err , "response from jira: " + string ( body ))
2728 }
2829
2930 ids := make (map [string ]int64 )
3031 for _ , c := range components {
3132 jiraID , err := strconv .ParseInt (c .ID , 10 , 64 )
3233 if err != nil {
33- msg := "error parsing jira ID"
34- log . WithError ( err ). Warn ( msg )
34+ log . WithError ( err ). Warnf ( "error parsing jira ID '%s'" , c . ID )
35+ continue
3536 }
3637
3738 ids [c .Name ] = jiraID
You can’t perform that action at this time.
0 commit comments