Skip to content

Commit 014a2fa

Browse files
committed
fix bug checking incorrect error
1 parent 5ceaef6 commit 014a2fa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

proxy/process.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ func (p *Process) start() error {
160160

161161
// Set process state to failed
162162
if err != nil {
163-
if curState, swapErr := p.swapState(StateStarting, StateFailed); err != nil {
163+
if curState, swapErr := p.swapState(StateStarting, StateFailed); swapErr != nil {
164164
return fmt.Errorf(
165165
"failed to start command and state swap failed. command error: %v, current state: %v, state swap error: %v",
166166
err, curState, swapErr,

0 commit comments

Comments
 (0)