summaryrefslogtreecommitdiff
path: root/test/diagnostics/init.lua
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2021-09-22 17:41:25 +0800
committer最萌小汐 <sumneko@hotmail.com>2021-09-22 17:41:25 +0800
commitc951f3472628bdccdbf13a6bd95bc36cc93523fd (patch)
tree1b54015d40483b573e981678f06859e3e709c929 /test/diagnostics/init.lua
parent32aa2dac835a0c74b82b19d83d9fd06be7a947ce (diff)
downloadlua-language-server-c951f3472628bdccdbf13a6bd95bc36cc93523fd.zip
update
Diffstat (limited to 'test/diagnostics/init.lua')
-rw-r--r--test/diagnostics/init.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/diagnostics/init.lua b/test/diagnostics/init.lua
index 840be836..5f69bdc9 100644
--- a/test/diagnostics/init.lua
+++ b/test/diagnostics/init.lua
@@ -41,7 +41,7 @@ function TEST(script, ...)
end
if results[1] then
- if not founded(catched['!'], results) then
+ if not founded(catched['!'] or {}, results) then
error(('%s\n%s'):format(util.dump(catched['!']), util.dump(results)))
end
else