summaryrefslogtreecommitdiff
path: root/server/src/matcher
diff options
context:
space:
mode:
Diffstat (limited to 'server/src/matcher')
-rw-r--r--server/src/matcher/diagnostics.lua3
-rw-r--r--server/src/matcher/find_lib.lua2
2 files changed, 4 insertions, 1 deletions
diff --git a/server/src/matcher/diagnostics.lua b/server/src/matcher/diagnostics.lua
index 4b05092e..9c2e4efd 100644
--- a/server/src/matcher/diagnostics.lua
+++ b/server/src/matcher/diagnostics.lua
@@ -31,6 +31,9 @@ local function searchUndefinedGlobal(results, callback)
then
goto NEXT_VAR
end
+ if var.key == 'log' then
+ goto NEXT_VAR
+ end
if not var.key:find '%l' then
goto NEXT_VAR
end
diff --git a/server/src/matcher/find_lib.lua b/server/src/matcher/find_lib.lua
index 968f5cf2..92d90e50 100644
--- a/server/src/matcher/find_lib.lua
+++ b/server/src/matcher/find_lib.lua
@@ -9,7 +9,7 @@ local function getLibs()
for path in io.scan(ROOT / 'libs') do
local buf = io.load(path)
if buf then
- lni.classics(buf, path:string(), {Libs})
+ xpcall(lni.classics, log.error, buf, path:string(), {Libs})
end
end
return Libs