From a88d6caf533e11d3171232e415f106475e5b3f08 Mon Sep 17 00:00:00 2001 From: Travis DePrato Date: Wed, 13 Jan 2021 13:04:50 -0800 Subject: Fix code review issues --- pkg/shim/runsc/runsc.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'pkg/shim/runsc') diff --git a/pkg/shim/runsc/runsc.go b/pkg/shim/runsc/runsc.go index e1d616d6f..3c4cbf223 100644 --- a/pkg/shim/runsc/runsc.go +++ b/pkg/shim/runsc/runsc.go @@ -169,14 +169,14 @@ func (r *Runsc) Create(context context.Context, id, bundle string, opts *CreateO func (r *Runsc) Pause(context context.Context, id string) error { if _, err := cmdOutput(r.command(context, "pause", id), true); err != nil { - return fmt.Errorf("unable to pause: %s", err) + return fmt.Errorf("unable to pause: %w", err) } return nil } func (r *Runsc) Resume(context context.Context, id string) error { - if _, err := cmdOutput(r.command(context, "pause", id), true); err != nil { - return fmt.Errorf("unable to resume: %s", err) + if _, err := cmdOutput(r.command(context, "resume", id), true); err != nil { + return fmt.Errorf("unable to resume: %w", err) } return nil } -- cgit v1.2.3