Skip to content

Commit b846a9a

Browse files
committed
PR: .Wrapf( to .Wrap(
Signed-off-by: Hamza El-Saawy <[email protected]>
1 parent 2b7d978 commit b846a9a

File tree

1 file changed

+3
-3
lines changed
  • cmd/containerd-shim-runhcs-v1

1 file changed

+3
-3
lines changed

cmd/containerd-shim-runhcs-v1/pod.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -402,16 +402,16 @@ func (p *pod) KillTask(ctx context.Context, tid, eid string, signal uint32, all
402402
func (p *pod) DeleteTask(ctx context.Context, tid string) error {
403403
t, err := p.GetTask(tid)
404404
if err != nil {
405-
return errors.Wrapf(err, "could not find task to delete")
405+
return errors.Wrap(err, "could not delete task")
406406
}
407407

408408
// although deleting the sandbox task is a no-op, still check that it is not running
409409
e, err := t.GetExec("")
410410
if err != nil {
411-
return errors.Wrapf(err, "could not get initial exec")
411+
return errors.Wrap(err, "could not get initial exec")
412412
}
413413
if e.State() == shimExecStateRunning {
414-
return errors.Wrapf(errdefs.ErrFailedPrecondition, "cannot delete task with running exec")
414+
return errors.Wrap(errdefs.ErrFailedPrecondition, "cannot delete task with running exec")
415415
}
416416

417417
if p.id != tid {

0 commit comments

Comments
 (0)