Exit with error on screen initialization

This commit is contained in:
Zachary Yedidia
2018-01-30 13:04:26 -05:00
parent 4632c3594f
commit 3325b98063

View 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 {