diff options
Diffstat (limited to 'pkg/v1/proc')
-rw-r--r-- | pkg/v1/proc/deleted_state.go | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/pkg/v1/proc/deleted_state.go b/pkg/v1/proc/deleted_state.go index 95b4406cd..b0233841d 100644 --- a/pkg/v1/proc/deleted_state.go +++ b/pkg/v1/proc/deleted_state.go @@ -38,12 +38,10 @@ func (s *deletedState) Start(ctx context.Context) error { } func (s *deletedState) Delete(ctx context.Context) error { - return errors.Errorf("cannot delete a deleted process") return errors.Wrap(errdefs.ErrNotFound, "cannot delete a deleted process") } func (s *deletedState) Kill(ctx context.Context, sig uint32, all bool) error { - return errors.Errorf("cannot kill a deleted process") return errors.Wrap(errdefs.ErrNotFound, "cannot kill a deleted process") } |