mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-05-11 12:25:47 +02:00
Remove calls to Error()
Now that we have an error handler set, we can simply let them bubble up all the way to gocui.
This commit is contained in:
parent
325800a72e
commit
82a3d33ce3
35 changed files with 158 additions and 168 deletions
|
@ -791,7 +791,7 @@ func (gui *Gui) runSubprocessWithSuspense(subprocess oscommands.ICmdObj) (bool,
|
|||
defer gui.Mutexes.SubprocessMutex.Unlock()
|
||||
|
||||
if err := gui.g.Suspend(); err != nil {
|
||||
return false, gui.c.Error(err)
|
||||
return false, err
|
||||
}
|
||||
|
||||
gui.BackgroundRoutineMgr.PauseBackgroundRefreshes(true)
|
||||
|
@ -804,7 +804,7 @@ func (gui *Gui) runSubprocessWithSuspense(subprocess oscommands.ICmdObj) (bool,
|
|||
}
|
||||
|
||||
if cmdErr != nil {
|
||||
return false, gui.c.Error(cmdErr)
|
||||
return false, cmdErr
|
||||
}
|
||||
|
||||
return true, nil
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue