Skip to content

Commit

Permalink
Merge pull request #100 from drone-runners/revert-99-CI-10637
Browse files Browse the repository at this point in the history
Revert "(CI-10637) error to console placeholder/step failure"
  • Loading branch information
TP Honey authored Dec 12, 2023
2 parents d44ac65 + 1e46b08 commit b57d0a9
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions engine/podwatcher/watcher.go
Original file line number Diff line number Diff line change
Expand Up @@ -285,17 +285,12 @@ func (pw *PodWatcher) notifyClients(c *containerWatchInfo) {
case stepStateRunning, stepStateFinished:
pw.notifyClientsContainerChange(c)
case stepStatePlaceholderFailed, stepStateFailed:
failedContainer := FailedContainerError{
pw.notifyClientsError(c, FailedContainerError{
container: c.id,
exitCode: c.exitCode,
reason: c.reason,
image: c.image,
}
logrus.WithField("pod", pw.podName).
WithField("container", c.id).
WithField("stepState", c.stepState).
Error(failedContainer.Error())
pw.notifyClientsError(c, failedContainer)
})
}
}

Expand Down

0 comments on commit b57d0a9

Please sign in to comment.