Skip to content

Commit

Permalink
taskrun: fix log message
Browse files Browse the repository at this point in the history
A minor fix to ensure error is included in log.
  • Loading branch information
zhouhaibing089 committed Jan 13, 2021
1 parent c5c7b62 commit 52a64e3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/reconciler/taskrun/taskrun.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 52a64e3

Please sign in to comment.