mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-05-11 12:25:47 +02:00
Rename Error() to ErrorHandler()
It is now only used as the error handler that is passed to gocui.Gui on construction; it's not a client-facing API any more. Also, it doesn't have to handle gocui.ErrQuit, as gocui takes care of that.
This commit is contained in:
parent
653994845e
commit
723b92916d
3 changed files with 4 additions and 7 deletions
|
@ -652,7 +652,7 @@ func (gui *Gui) Run(startArgs appTypes.StartArgs) error {
|
|||
gui.g = g
|
||||
defer gui.g.Close()
|
||||
|
||||
g.ErrorHandler = gui.PopupHandler.Error
|
||||
g.ErrorHandler = gui.PopupHandler.ErrorHandler
|
||||
|
||||
// if the deadlock package wants to report a deadlock, we first need to
|
||||
// close the gui so that we can actually read what it prints.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue