diff --git a/pkg/skaffold/verify/k8sjob/verify.go b/pkg/skaffold/verify/k8sjob/verify.go index 4911b69794a..332dfe511d6 100644 --- a/pkg/skaffold/verify/k8sjob/verify.go +++ b/pkg/skaffold/verify/k8sjob/verify.go @@ -279,7 +279,20 @@ func (v *Verifier) watchJob(ctx context.Context, clientset k8sclient.Interface, break } if pod.Status.Phase == corev1.PodFailed { - podErr = errors.New(fmt.Sprintf("%q running job %q errored during run", tc.Name, job.Name)) + failReason := pod.Status.Reason + if failReason == "" { + failReason = "" + } + + failMessage := pod.Status.Message + if failMessage == "" { + failMessage = "" + } + + podErr = errors.New(fmt.Sprintf( + "%q running job %q errored during run: reason=%q, message=%q", + tc.Name, job.Name, failReason, failMessage, + )) break }