mirror of
https://github.com/opencontainers/runc.git
synced 2026-07-11 06:03:57 +08:00
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 <vipulnewaskar7@gmail.com>
This commit is contained in:
@@ -548,7 +548,7 @@ func (p *initProcess) start() (retErr error) {
|
|||||||
// procRun sync.
|
// procRun sync.
|
||||||
state, uerr := p.container.updateState(p)
|
state, uerr := p.container.updateState(p)
|
||||||
if uerr != nil {
|
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
|
p.container.initProcessStartTime = state.InitProcessStartTime
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user