From 9fc707e70335044090d5885a9c85ef5fdacdf120 Mon Sep 17 00:00:00 2001 From: Vipul Newaskar Date: Sun, 13 Nov 2022 23:46:12 +0530 Subject: [PATCH] Fixed init state error variable Init State Error message was using the err variable instead of uerr, which has been fixed now. The error message should not show "nil" now. Signed-off-by: Vipul Newaskar --- libcontainer/process_linux.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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