diff options
| author | Christoph Blessing <33834216+cblessing24@users.noreply.github.com> | 2022-08-01 18:06:28 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-08-01 18:06:28 +0200 |
| commit | 2e05e63cdfc3532b52a035ed13192560af45315d (patch) | |
| tree | b980c07f866e20eb47a9d80937583c385997ae27 /lua/telescope/builtin/__lsp.lua | |
| parent | b5833a682c511885887373aad76272ad70f7b3c2 (diff) | |
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.
Diffstat (limited to 'lua/telescope/builtin/__lsp.lua')
| -rw-r--r-- | lua/telescope/builtin/__lsp.lua | 2 |
1 files changed, 1 insertions, 1 deletions
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 |
