]> git.lizzy.rs Git - micro.git/commitdiff
Exit with error on screen initialization
authorZachary Yedidia <zyedidia@gmail.com>
Tue, 30 Jan 2018 18:04:26 +0000 (13:04 -0500)
committerZachary Yedidia <zyedidia@gmail.com>
Tue, 30 Jan 2018 18:04:26 +0000 (13:04 -0500)
cmd/micro/micro.go

index b4d129a11601827e0260ada46abf4ab92524fdc5..e835bab8f1fd19eb237a3a542928e756850267dd 100644 (file)
@@ -206,6 +206,10 @@ func InitScreen() {
                                fmt.Println("Fatal: Micro could not initialize a screen.")
                                os.Exit(1)
                        }
+               } else {
+                       fmt.Println(err)
+                       fmt.Println("Fatal: Micro could not initialize a screen.")
+                       os.Exit(1)
                }
        }
        if err = screen.Init(); err != nil {