Skip to content

Commit dd23426

Browse files
author
Aaron Schlesinger
committed
fix(pkg/gitreceive/build.go): change err message to indicate code for failed build pods
1 parent c377f9f commit dd23426

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)