mirror of
https://github.com/neovim/neovim.git
synced 2025-09-28 22:18:33 +00:00
fix: adjust error message for error in UI event callback (#28200)
Also close Nvim instance before removing log file, otherwise the Nvim instance will still write to the log file. Also adjust log level in libuv_process_spawn(). Ref #27660
This commit is contained in:
@@ -90,7 +90,7 @@ int libuv_process_spawn(LibuvProcess *uvproc)
|
||||
|
||||
int status;
|
||||
if ((status = uv_spawn(&proc->loop->uv, &uvproc->uv, &uvproc->uvopts))) {
|
||||
DLOG("uv_spawn(%s) failed: %s", uvproc->uvopts.file, uv_strerror(status));
|
||||
ILOG("uv_spawn(%s) failed: %s", uvproc->uvopts.file, uv_strerror(status));
|
||||
if (uvproc->uvopts.env) {
|
||||
os_free_fullenv(uvproc->uvopts.env);
|
||||
}
|
||||
|
@@ -723,7 +723,7 @@ void ui_call_event(char *name, Array args)
|
||||
handled = true;
|
||||
}
|
||||
if (ERROR_SET(&err)) {
|
||||
ELOG("Error while executing ui_comp_event callback: %s", err.msg);
|
||||
ELOG("Error executing UI event callback: %s", err.msg);
|
||||
}
|
||||
api_clear_error(&err);
|
||||
})
|
||||
|
Reference in New Issue
Block a user