Merge pull request #111199 from zhoumingcheng/master-v6

Update error log to Error Wrapping
This commit is contained in:
Kubernetes Prow Robot
2022-07-18 15:36:44 -07:00
committed by GitHub

View File

@@ -119,7 +119,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)