summaryrefslogtreecommitdiff
path: root/server/src/async/loadfile.lua
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2019-06-25 00:33:59 +0800
committer最萌小汐 <sumneko@hotmail.com>2019-06-25 00:33:59 +0800
commiteb0f00760e6ee12a492cfcbb7495821c6b67977f (patch)
tree8d086af7f2eff8e08a409dcc4915924629238982 /server/src/async/loadfile.lua
parente00a622f2a2c34df1f39762a16a3db17ed521d43 (diff)
downloadlua-language-server-eb0f00760e6ee12a492cfcbb7495821c6b67977f.zip
加点日志
Diffstat (limited to 'server/src/async/loadfile.lua')
-rw-r--r--server/src/async/loadfile.lua2
1 files changed, 2 insertions, 0 deletions
diff --git a/server/src/async/loadfile.lua b/server/src/async/loadfile.lua
index 33851f58..b9d0f41c 100644
--- a/server/src/async/loadfile.lua
+++ b/server/src/async/loadfile.lua
@@ -6,6 +6,8 @@ while true do
local buf = io.load(fs.path(filename))
if buf then
OUT:push(filename, mode, buf)
+ else
+ ERR:push('Load failed:' .. filename)
end
GC:push(ID, collectgarbage 'count')
end