diff options
author | Jesse Duffield <jessedduffield@gmail.com> | 2022-01-16 14:31:28 +1100 |
---|---|---|
committer | github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> | 2022-01-16 03:32:09 +0000 |
commit | 0092c9d08db6d60fe992c60c6cdacf3703e2cf2a (patch) | |
tree | d49e946a2f65de79e8e543715b089d51bf90ace0 /pkg/gui | |
parent | befa35645ea6bb32e3f4447f00c79c0c9a326483 (diff) |
fix bug with subprocess
Diffstat (limited to 'pkg/gui')
-rw-r--r-- | pkg/gui/gui.go | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/pkg/gui/gui.go b/pkg/gui/gui.go index 328d76ef8..4d11efcc5 100644 --- a/pkg/gui/gui.go +++ b/pkg/gui/gui.go @@ -645,7 +645,11 @@ func (gui *Gui) runSubprocessWithSuspense(subprocess oscommands.ICmdObj) (bool, gui.PauseBackgroundThreads = false - return cmdErr == nil, gui.surfaceError(cmdErr) + if cmdErr != nil { + return false, gui.surfaceError(cmdErr) + } + + return true, nil } func (gui *Gui) runSubprocess(cmdObj oscommands.ICmdObj) error { //nolint:unparam |