fix bug checking incorrect error

This commit is contained in:
Benson Wong
2025-03-20 15:26:39 -07:00
parent 93cd83c55c
commit d94db42ffe

View File

@@ -160,7 +160,7 @@ func (p *Process) start() error {
// Set process state to failed
if err != nil {
if curState, swapErr := p.swapState(StateStarting, StateFailed); err != nil {
if curState, swapErr := p.swapState(StateStarting, StateFailed); swapErr != nil {
return fmt.Errorf(
"failed to start command and state swap failed. command error: %v, current state: %v, state swap error: %v",
err, curState, swapErr,