mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-21 19:01:49 +00:00
Merge pull request #111199 from zhoumingcheng/master-v6
Update error log to Error Wrapping
This commit is contained in:
commit
93cb8fda4d
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user