From b846a9aefb9ac57bfc7807e74113c89f14809f70 Mon Sep 17 00:00:00 2001 From: Hamza El-Saawy Date: Tue, 1 Feb 2022 18:14:35 -0500 Subject: [PATCH] PR: .Wrapf( to .Wrap( Signed-off-by: Hamza El-Saawy --- cmd/containerd-shim-runhcs-v1/pod.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cmd/containerd-shim-runhcs-v1/pod.go b/cmd/containerd-shim-runhcs-v1/pod.go index d3f0a9448e..df98fb8820 100644 --- a/cmd/containerd-shim-runhcs-v1/pod.go +++ b/cmd/containerd-shim-runhcs-v1/pod.go @@ -402,16 +402,16 @@ func (p *pod) KillTask(ctx context.Context, tid, eid string, signal uint32, all func (p *pod) DeleteTask(ctx context.Context, tid string) error { t, err := p.GetTask(tid) if err != nil { - return errors.Wrapf(err, "could not find task to delete") + return errors.Wrap(err, "could not delete task") } // although deleting the sandbox task is a no-op, still check that it is not running e, err := t.GetExec("") if err != nil { - return errors.Wrapf(err, "could not get initial exec") + return errors.Wrap(err, "could not get initial exec") } if e.State() == shimExecStateRunning { - return errors.Wrapf(errdefs.ErrFailedPrecondition, "cannot delete task with running exec") + return errors.Wrap(errdefs.ErrFailedPrecondition, "cannot delete task with running exec") } if p.id != tid {