mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-28 05:57:25 +00:00
Update error log to Error Wrapping
Signed-off-by: zhoumingcheng <zhoumingcheng@beyondcent.com>
This commit is contained in:
parent
5b92e46b22
commit
d5ed07c8eb
@ -118,7 +118,7 @@ func (pl *TaintToleration) PreScore(ctx context.Context, cycleState *framework.C
|
|||||||
func getPreScoreState(cycleState *framework.CycleState) (*preScoreState, error) {
|
func getPreScoreState(cycleState *framework.CycleState) (*preScoreState, error) {
|
||||||
c, err := cycleState.Read(preScoreStateKey)
|
c, err := cycleState.Read(preScoreStateKey)
|
||||||
if err != nil {
|
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)
|
s, ok := c.(*preScoreState)
|
||||||
|
Loading…
Reference in New Issue
Block a user