summaryrefslogtreecommitdiff
path: root/server/src/core/library.lua
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2019-03-31 12:46:05 +0800
committer最萌小汐 <sumneko@hotmail.com>2019-03-31 12:46:05 +0800
commit92e4da8c7cec41b0595c59ac91345a812d902975 (patch)
tree84a64dda769b723c694107afd4a3b95b57936978 /server/src/core/library.lua
parentdac81ea089eb6970c81859ff2a0bb233f3eb159f (diff)
downloadlua-language-server-92e4da8c7cec41b0595c59ac91345a812d902975.zip
更新lni
Diffstat (limited to 'server/src/core/library.lua')
-rw-r--r--server/src/core/library.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/server/src/core/library.lua b/server/src/core/library.lua
index 6bceadc4..1f92b3ef 100644
--- a/server/src/core/library.lua
+++ b/server/src/core/library.lua
@@ -131,7 +131,7 @@ local function loadLocale(language, relative)
local localeBuf = io.load(localePath)
if localeBuf then
local locale = table.container()
- xpcall(lni.classics, log.error, localeBuf, localePath:string(), {locale})
+ xpcall(lni, log.error, localeBuf, localePath:string(), {locale})
return locale
end
return nil
@@ -175,7 +175,7 @@ local function init()
local buf = io.load(path)
if buf then
libs = table.container()
- xpcall(lni.classics, log.error, buf, path:string(), {libs})
+ xpcall(lni, log.error, buf, path:string(), {libs})
fix(libs)
end
local relative = fs.relative(path, ROOT)