diff options
author | Michael Muré <batolettre@gmail.com> | 2019-12-27 20:08:58 +0100 |
---|---|---|
committer | Michael Muré <batolettre@gmail.com> | 2019-12-27 20:08:58 +0100 |
commit | fc568209f073b9d775a09e0dbb8289cf9e5749bf (patch) | |
tree | 4a25e12ff1d2e89520f4bdc955b4ae2b68bdb883 /termui/termui.go | |
parent | 1bcba473fb77a3caf2c1b4afa98356069ebe9bc3 (diff) | |
download | git-bug-fc568209f073b9d775a09e0dbb8289cf9e5749bf.tar.gz |
termui: fix an excessive assumption about an error0.6.0
Diffstat (limited to 'termui/termui.go')
-rw-r--r-- | termui/termui.go | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/termui/termui.go b/termui/termui.go index 67f91280..9b92b536 100644 --- a/termui/termui.go +++ b/termui/termui.go @@ -67,7 +67,9 @@ func Run(cache *cache.RepoCache) error { err := <-ui.gError if err != nil && err != gocui.ErrQuit { - fmt.Println(err.(*errors2.Error).ErrorStack()) + if e, ok := err.(*errors2.Error); ok { + fmt.Println(e.ErrorStack()) + } return err } |