Skip to content

Commit d0e0952

Browse files
committed
Merge pull request #215 from arschles/build-pod-exit
fix(pkg/gitreceive/build.go): change err message to indicate code for failed build pods
2 parents c377f9f + dd23426 commit d0e0952

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

pkg/gitreceive/build.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ func build(conf *Config, s3Client *s3.S3, kubeClient *client.Client, builderKey,
205205
for _, containerStatus := range buildPod.Status.ContainerStatuses {
206206
state := containerStatus.State.Terminated
207207
if state.ExitCode != 0 {
208-
return fmt.Errorf("Stopping build.")
208+
return fmt.Errorf("Build pod exited with code %d, stopping build.", state.ExitCode)
209209
}
210210
}
211211

0 commit comments

Comments
 (0)