diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2018-12-06 15:53:57 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2018-12-06 15:53:57 +0800 |
commit | b2f11cdfc373606c212ec7e17af55a1cbb71acd0 (patch) | |
tree | cc16aeaa363eb376b5a95425cf72fe437be25cd9 /server/src/matcher/find_lib.lua | |
parent | 958080727301e050bdaf1c7a2281b9c9e1988033 (diff) | |
download | lua-language-server-b2f11cdfc373606c212ec7e17af55a1cbb71acd0.zip |
先把所有的基础API都定义一下
Diffstat (limited to 'server/src/matcher/find_lib.lua')
-rw-r--r-- | server/src/matcher/find_lib.lua | 2 |
1 files changed, 1 insertions, 1 deletions
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 |