1
1
mirror of https://github.com/qvacua/vimr.git synced 2024-11-28 02:54:31 +03:00

GH-553 Display the error message in the main queue

This commit is contained in:
Tae Won Ha 2017-12-10 11:32:16 +01:00
parent 3b577f95bf
commit 45cf5ee0c1
No known key found for this signature in database
GPG Key ID: E40743465B5B8B44

View File

@ -62,12 +62,14 @@ extension NvimView {
if noErrorDuringInitialization == false {
self.logger.fault("There was an error launching neovim.")
let alert = NSAlert()
alert.alertStyle = .warning
alert.messageText = "Error during initialization"
alert.informativeText = "There was an error during the initialization of NeoVim. " +
"Use :messages to view the error messages."
alert.runModal()
DispatchQueue.main.async {
let alert = NSAlert()
alert.alertStyle = .warning
alert.messageText = "Error during initialization"
alert.informativeText = "There was an error during the initialization of NeoVim. " +
"Use :messages to view the error messages."
alert.runModal()
}
}
}