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.

(cherry picked from commit 2e05e63cdf)
This commit is contained in:
Christoph Blessing
2022-08-01 18:29:43 +02:00
committed by Simon Hauser
parent 83c760cbac
commit 7a84733b8f
+1 -1
View File
@@ -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