diff options
Diffstat (limited to 'termui/termui.go')
-rw-r--r-- | termui/termui.go | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/termui/termui.go b/termui/termui.go index 8aece020..67f91280 100644 --- a/termui/termui.go +++ b/termui/termui.go @@ -2,9 +2,13 @@ package termui import ( - "github.com/MichaelMure/gocui" + "fmt" + + "github.com/awesome-gocui/gocui" "github.com/pkg/errors" + errors2 "github.com/go-errors/errors" + "github.com/MichaelMure/git-bug/cache" "github.com/MichaelMure/git-bug/entity" "github.com/MichaelMure/git-bug/input" @@ -63,15 +67,15 @@ func Run(cache *cache.RepoCache) error { err := <-ui.gError if err != nil && err != gocui.ErrQuit { + fmt.Println(err.(*errors2.Error).ErrorStack()) return err } - return nil } func initGui(action func(ui *termUI) error) { - g, err := gocui.NewGui(gocui.Output256) + g, err := gocui.NewGui(gocui.Output256, false) if err != nil { ui.gError <- err |