diff --git a/pkg/skaffold/verify/k8sjob/verify.go b/pkg/skaffold/verify/k8sjob/verify.go index 332dfe511d6..784ea8f738f 100644 --- a/pkg/skaffold/verify/k8sjob/verify.go +++ b/pkg/skaffold/verify/k8sjob/verify.go @@ -289,10 +289,10 @@ func (v *Verifier) watchJob(ctx context.Context, clientset k8sclient.Interface, failMessage = "" } - podErr = errors.New(fmt.Sprintf( + podErr = fmt.Errorf( "%q running job %q errored during run: reason=%q, message=%q", tc.Name, job.Name, failReason, failMessage, - )) + ) break }