summaryrefslogtreecommitdiff
path: root/script/provider
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2021-07-14 21:44:18 +0800
committer最萌小汐 <sumneko@hotmail.com>2021-07-14 21:44:18 +0800
commit0115abdc5438189b9c0f0c1a5b1946a7ee1f85a7 (patch)
tree2da7c97abf4b053c676f55f69c6c62566e3937eb /script/provider
parent92a5388138c2d916eaa0160df1cebfbec70a6b16 (diff)
downloadlua-language-server-0115abdc5438189b9c0f0c1a5b1946a7ee1f85a7.zip
fix
Diffstat (limited to 'script/provider')
-rw-r--r--script/provider/diagnostic.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/script/provider/diagnostic.lua b/script/provider/diagnostic.lua
index 3575afbb..5d3b00ea 100644
--- a/script/provider/diagnostic.lua
+++ b/script/provider/diagnostic.lua
@@ -169,7 +169,7 @@ function m.diagnostics(uri, diags)
return
end
- core(uri, function (results)
+ xpcall(core, log.error, uri, function (results)
if #results == 0 then
return
end