Skip to content

Commit fe787ef

Browse files
committed
Fix error log when kill shim
Signed-off-by: Shiming Zhang <wzshiming@foxmail.com>
1 parent 2d5f9bf commit fe787ef

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

runtime/v1/linux/runtime.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ func (r *Runtime) Create(ctx context.Context, id string, opts runtime.CreateOpts
219219
namespaces.WithNamespace(context.TODO(), namespace), cleanupTimeout)
220220
defer deferCancel()
221221
if kerr := s.KillShim(deferCtx); kerr != nil {
222-
log.G(ctx).WithError(err).Error("failed to kill shim")
222+
log.G(ctx).WithError(kerr).Error("failed to kill shim")
223223
}
224224
}
225225
}()

0 commit comments

Comments
 (0)