summaryrefslogtreecommitdiff
path: root/script/parser/guide.lua
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2022-04-25 11:12:55 +0800
committer最萌小汐 <sumneko@hotmail.com>2022-04-25 11:12:55 +0800
commit035f82ff62c20743c8d32ffa9fe95773a8e9df89 (patch)
treebc28a66fed24b687ccad70d60b21fd93dc088557 /script/parser/guide.lua
parentbdd079408013f0b09788e05c01d6e5a3649d1dcf (diff)
downloadlua-language-server-035f82ff62c20743c8d32ffa9fe95773a8e9df89.zip
add log
Diffstat (limited to 'script/parser/guide.lua')
-rw-r--r--script/parser/guide.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/script/parser/guide.lua b/script/parser/guide.lua
index fffba639..1e07d987 100644
--- a/script/parser/guide.lua
+++ b/script/parser/guide.lua
@@ -406,6 +406,7 @@ function m.getRoot(obj)
end
local parent = obj.parent
if not parent then
+ log.error('Can not find out root:', obj.type)
return nil
end
obj = parent