Skip to content

Commit 0092c9d

Browse files
jesseduffieldgithub-actions[bot]
authored andcommitted
fix bug with subprocess
1 parent befa356 commit 0092c9d

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

pkg/gui/gui.go

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -645,7 +645,11 @@ func (gui *Gui) runSubprocessWithSuspense(subprocess oscommands.ICmdObj) (bool,
645645

646646
gui.PauseBackgroundThreads = false
647647

648-
return cmdErr == nil, gui.surfaceError(cmdErr)
648+
if cmdErr != nil {
649+
return false, gui.surfaceError(cmdErr)
650+
}
651+
652+
return true, nil
649653
}
650654

651655
func (gui *Gui) runSubprocess(cmdObj oscommands.ICmdObj) error { //nolint:unparam

0 commit comments

Comments
 (0)