From 52a64e3a90939e7d262533dc719aceeaee7a27fb Mon Sep 17 00:00:00 2001 From: Haibing Zhou Date: Wed, 13 Jan 2021 10:52:55 -0800 Subject: [PATCH] taskrun: fix log message A minor fix to ensure error is included in log. --- pkg/reconciler/taskrun/taskrun.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/reconciler/taskrun/taskrun.go b/pkg/reconciler/taskrun/taskrun.go index 18f14911bc2..7e0ed355f05 100644 --- a/pkg/reconciler/taskrun/taskrun.go +++ b/pkg/reconciler/taskrun/taskrun.go @@ -263,7 +263,7 @@ func (c *Reconciler) prepare(ctx context.Context, tr *v1beta1.TaskRun) (*v1beta1 getTaskfunc, kind, err := resources.GetTaskFunc(ctx, c.KubeClientSet, c.PipelineClientSet, tr.Spec.TaskRef, tr.Namespace, tr.Spec.ServiceAccountName) if err != nil { - logger.Errorf("Failed to fetch task reference %s: %v", tr.Spec.TaskRef.Name) + logger.Errorf("Failed to fetch task reference %s: %v", tr.Spec.TaskRef.Name, err) tr.Status.SetCondition(&apis.Condition{ Type: apis.ConditionSucceeded, Status: corev1.ConditionFalse,