feat: replace github.com/pkg/errors to errors
Signed-off-by: haoyun <yun.hao@daocloud.io> Co-authored-by: zounengren <zouyee1989@gmail.com>
This commit is contained in:
		| @@ -17,8 +17,9 @@ | ||||
| package server | ||||
|  | ||||
| import ( | ||||
| 	"fmt" | ||||
|  | ||||
| 	cni "github.com/containerd/go-cni" | ||||
| 	"github.com/pkg/errors" | ||||
| ) | ||||
|  | ||||
| // windowsNetworkAttachCount is the minimum number of networks the PodSandbox | ||||
| @@ -54,7 +55,7 @@ func (c *criService) initPlatform() error { | ||||
| 			cni.WithPluginMaxConfNum(max), | ||||
| 			cni.WithPluginDir([]string{c.config.NetworkPluginBinDir})) | ||||
| 		if err != nil { | ||||
| 			return errors.Wrap(err, "failed to initialize cni") | ||||
| 			return fmt.Errorf("failed to initialize cni: %w", err) | ||||
| 		} | ||||
| 		c.netPlugin[name] = i | ||||
| 	} | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 haoyun
					haoyun