diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2021-10-21 20:25:42 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2021-10-21 20:25:42 +0800 |
commit | f2ab967b3e4e0c44604bc4df921bdb2b379d6b42 (patch) | |
tree | e94faae8cff11e3bd37b72b5d221b5e6140f75f5 /script/files.lua | |
parent | 9791565324f0376494600ee230da7cdcb42a3310 (diff) | |
download | lua-language-server-f2ab967b3e4e0c44604bc4df921bdb2b379d6b42.zip |
fix some runtime errors
Diffstat (limited to 'script/files.lua')
-rw-r--r-- | script/files.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/script/files.lua b/script/files.lua index 1de18a41..b367f09c 100644 --- a/script/files.lua +++ b/script/files.lua @@ -715,7 +715,7 @@ end function m.onWatch(ev, ...) for _, callback in ipairs(m.watchList) do - callback(ev, ...) + xpcall(callback, log.error, ev, ...) end end |