aboutsummaryrefslogtreecommitdiffstats
path: root/termui
diff options
context:
space:
mode:
authorMichael Muré <batolettre@gmail.com>2019-12-27 20:08:58 +0100
committerMichael Muré <batolettre@gmail.com>2019-12-27 20:08:58 +0100
commitfc568209f073b9d775a09e0dbb8289cf9e5749bf (patch)
tree4a25e12ff1d2e89520f4bdc955b4ae2b68bdb883 /termui
parent1bcba473fb77a3caf2c1b4afa98356069ebe9bc3 (diff)
downloadgit-bug-fc568209f073b9d775a09e0dbb8289cf9e5749bf.tar.gz
termui: fix an excessive assumption about an error0.6.0
Diffstat (limited to 'termui')
-rw-r--r--termui/termui.go4
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
}