mirror of
https://github.com/MichaelMure/git-bug.git
synced 2024-12-14 08:45:30 +03:00
termui: fix an excessive assumption about an error
This commit is contained in:
parent
1bcba473fb
commit
fc568209f0
@ -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
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user