This commit is contained in:
Adam Majer 2024-08-16 14:23:04 +02:00
parent f955457dd6
commit 8dd523e281

View File

@ -103,6 +103,7 @@ func processBuildStatus(h *common.RequestHandler, project, refProject *common.Bu
repoRes := &project.Result[i] repoRes := &project.Result[i]
repoResStatus, ok := common.ObsRepoStatusDetails[repoRes.Code] repoResStatus, ok := common.ObsRepoStatusDetails[repoRes.Code]
if !ok { if !ok {
h.LogError("cannot find code: %s", repoRes.Code)
return BuildStatusSummaryUnknown return BuildStatusSummaryUnknown
} }
if !repoResStatus.Finished { if !repoResStatus.Finished {
@ -149,6 +150,7 @@ func processBuildStatus(h *common.RequestHandler, project, refProject *common.Bu
} }
if j >= len(refProject.Result) { if j >= len(refProject.Result) {
h.LogError("Cannot find results... %#v \n %#v\n", project.Result[i], refProject.Result)
return BuildStatusSummaryUnknown return BuildStatusSummaryUnknown
} }
} }