Use github.com/pkg/errors
Signed-off-by: Lantao Liu <lantaol@google.com>
This commit is contained in:
@@ -51,7 +51,7 @@ var loadCommand = cli.Command{
|
||||
)
|
||||
cl, err := client.NewCRIContainerdClient(address, timeout)
|
||||
if err != nil {
|
||||
return fmt.Errorf("failed to create grpc client: %v", err)
|
||||
return errors.Wrap(err, "failed to create grpc client")
|
||||
}
|
||||
if timeout > 0 {
|
||||
ctx, cancel = gocontext.WithTimeout(gocontext.Background(), timeout)
|
||||
|
Reference in New Issue
Block a user