summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--script/core/searcher.lua7
1 files changed, 6 insertions, 1 deletions
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