Update error log to Error Wrapping

Signed-off-by: zhoumingcheng <zhoumingcheng@beyondcent.com>
This commit is contained in:
zhoumingcheng 2022-07-18 10:54:54 +08:00
parent 5b92e46b22
commit d5ed07c8eb

View File

@ -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)