diff options
author | zeertzjq <zeertzjq@outlook.com> | 2024-04-06 11:18:43 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-04-06 11:18:43 +0800 |
commit | ae28ef327e02ac87ef26f941c401312ed0462d8c (patch) | |
tree | dca68db1160d5d8657589298f17b4b5fe5553289 /src | |
parent | ddbd2b4e40d0b744d4d5b2b2251a4fc4c51f43e1 (diff) | |
download | rneovim-ae28ef327e02ac87ef26f941c401312ed0462d8c.tar.gz rneovim-ae28ef327e02ac87ef26f941c401312ed0462d8c.tar.bz2 rneovim-ae28ef327e02ac87ef26f941c401312ed0462d8c.zip |
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
Diffstat (limited to 'src')
-rw-r--r-- | src/nvim/event/libuv_process.c | 2 | ||||
-rw-r--r-- | src/nvim/ui.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/nvim/event/libuv_process.c b/src/nvim/event/libuv_process.c index 608aeb4c15..f77d686c10 100644 --- a/src/nvim/event/libuv_process.c +++ b/src/nvim/event/libuv_process.c @@ -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); } diff --git a/src/nvim/ui.c b/src/nvim/ui.c index 506bb93f5b..98751c8952 100644 --- a/src/nvim/ui.c +++ b/src/nvim/ui.c @@ -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); }) |