From aa62898ae329ec7ef978b4e7263c6f41b28f2503 Mon Sep 17 00:00:00 2001 From: notomo Date: Thu, 29 Feb 2024 01:36:28 +0900 Subject: fix(lsp): correct the error message's cmd on spawning (#27632) --- runtime/lua/vim/lsp/rpc.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'runtime/lua/vim') diff --git a/runtime/lua/vim/lsp/rpc.lua b/runtime/lua/vim/lsp/rpc.lua index 1455ab51fa..e52c06a1bd 100644 --- a/runtime/lua/vim/lsp/rpc.lua +++ b/runtime/lua/vim/lsp/rpc.lua @@ -819,7 +819,8 @@ function M.start(cmd, dispatchers, extra_spawn_params) else sfx = string.format(' with error message: %s', err) end - local msg = string.format('Spawning language server with cmd: `%s` failed%s', cmd, sfx) + local msg = + string.format('Spawning language server with cmd: `%s` failed%s', vim.inspect(cmd), sfx) vim.notify(msg, vim.log.levels.WARN) return nil end -- cgit