From d5ed07c8eb00b5d637aed16a7f2e36da32f7ee2d Mon Sep 17 00:00:00 2001 From: zhoumingcheng Date: Mon, 18 Jul 2022 10:54:54 +0800 Subject: [PATCH] Update error log to Error Wrapping Signed-off-by: zhoumingcheng --- .../framework/plugins/tainttoleration/taint_toleration.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/scheduler/framework/plugins/tainttoleration/taint_toleration.go b/pkg/scheduler/framework/plugins/tainttoleration/taint_toleration.go index 9420c06c6ea..f052ff880a1 100644 --- a/pkg/scheduler/framework/plugins/tainttoleration/taint_toleration.go +++ b/pkg/scheduler/framework/plugins/tainttoleration/taint_toleration.go @@ -118,7 +118,7 @@ func (pl *TaintToleration) PreScore(ctx context.Context, cycleState *framework.C func getPreScoreState(cycleState *framework.CycleState) (*preScoreState, error) { c, err := cycleState.Read(preScoreStateKey) if err != nil { - return nil, fmt.Errorf("failed to read %q from cycleState: %v", preScoreStateKey, err) + return nil, fmt.Errorf("failed to read %q from cycleState: %w", preScoreStateKey, err) } s, ok := c.(*preScoreState)