From b2f11cdfc373606c212ec7e17af55a1cbb71acd0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=80=E8=90=8C=E5=B0=8F=E6=B1=90?= Date: Thu, 6 Dec 2018 15:53:57 +0800 Subject: =?UTF-8?q?=E5=85=88=E6=8A=8A=E6=89=80=E6=9C=89=E7=9A=84=E5=9F=BA?= =?UTF-8?q?=E7=A1=80API=E9=83=BD=E5=AE=9A=E4=B9=89=E4=B8=80=E4=B8=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server/src/matcher/find_lib.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'server/src/matcher/find_lib.lua') 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 -- cgit v1.2.3