Skip to content

Commit

Permalink
fix: lsp handler error log (#95)
Browse files Browse the repository at this point in the history
  • Loading branch information
wayjam committed Oct 22, 2021
1 parent a2e2e7b commit 063aefd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lua/trouble/providers/lsp.lua
Expand Up @@ -30,7 +30,7 @@ function M.references(win, buf, cb, _options)
params.context = { includeDeclaration = true }
lsp_buf_request(buf, method, params, function(err, result)
if err then
util.error("an error happened getting references: " .. err)
util.error("an error happened getting references: " .. err.message)
return cb({})
end
if result == nil or #result == 0 then
Expand All @@ -48,7 +48,7 @@ function M.implementations(win, buf, cb, _options)
params.context = { includeDeclaration = true }
lsp_buf_request(buf, method, params, function(err, result)
if err then
util.error("an error happened getting implementation: " .. err)
util.error("an error happened getting implementation: " .. err.message)
return cb({})
end
if result == nil or #result == 0 then
Expand All @@ -66,7 +66,7 @@ function M.definitions(win, buf, cb, _options)
params.context = { includeDeclaration = true }
lsp_buf_request(buf, method, params, function(err, result)
if err then
util.error("an error happened getting definitions: " .. err)
util.error("an error happened getting definitions: " .. err.message)
return cb({})
end
if result == nil or #result == 0 then
Expand Down

0 comments on commit 063aefd

Please sign in to comment.