diff --git a/libcontainer/process_linux.go b/libcontainer/process_linux.go index ea3223ae0..ba2990a95 100644 --- a/libcontainer/process_linux.go +++ b/libcontainer/process_linux.go @@ -548,7 +548,7 @@ func (p *initProcess) start() (retErr error) { // procRun sync. state, uerr := p.container.updateState(p) if uerr != nil { - return fmt.Errorf("unable to store init state: %w", err) + return fmt.Errorf("unable to store init state: %w", uerr) } p.container.initProcessStartTime = state.InitProcessStartTime