From 840947ef84baa30356bea82c87f81908876fd206 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, 10 Jun 2021 20:15:58 +0800 Subject: cleanup --- script/core/searcher.lua | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/script/core/searcher.lua b/script/core/searcher.lua index b94b938c..f6c34425 100644 --- a/script/core/searcher.lua +++ b/script/core/searcher.lua @@ -511,7 +511,12 @@ function m.searchRefsByID(status, uri, expect, mode) function searchStep(id, field) stepCount = stepCount + 1 if stepCount > 1000 then - error('too large') + if TEST then + error('too large!') + else + log.warn('too large!') + return + end end local node = noder.getNodeByID(root, id) if node then -- cgit v1.2.3