From d94db42ffebf8ed4b37d5aac63bdecedda289ad6 Mon Sep 17 00:00:00 2001 From: Benson Wong Date: Thu, 20 Mar 2025 15:26:39 -0700 Subject: [PATCH] fix bug checking incorrect error --- proxy/process.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/proxy/process.go b/proxy/process.go index 73e56d0..72d64ec 100644 --- a/proxy/process.go +++ b/proxy/process.go @@ -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,