From 2e05e63cdfc3532b52a035ed13192560af45315d Mon Sep 17 00:00:00 2001 From: Christoph Blessing <33834216+cblessing24@users.noreply.github.com> Date: Mon, 1 Aug 2022 18:06:28 +0200 Subject: [PATCH] fix: error due to concatenating table to string (#2108) This commit fixes a bug that lead to an error because we tried to concatenate a table (`err`) to a string. Now we concatenate `err.message` (a string) to the string. --- lua/telescope/builtin/__lsp.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/telescope/builtin/__lsp.lua b/lua/telescope/builtin/__lsp.lua index c1a01db..cf3478e 100644 --- a/lua/telescope/builtin/__lsp.lua +++ b/lua/telescope/builtin/__lsp.lua @@ -58,7 +58,7 @@ end local function call_hierarchy(opts, method, title, direction, item) vim.lsp.buf_request(opts.bufnr, method, { item = item }, function(err, result) if err then - vim.api.nvim_err_writeln("Error handling " .. title .. ": " .. err) + vim.api.nvim_err_writeln("Error handling " .. title .. ": " .. err.message) return end