mirror of
https://github.com/zyedidia/micro.git
synced 2026-03-16 22:07:09 +09:00
Exit with error on screen initialization
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user