diff options
author | sumneko <sumneko@hotmail.com> | 2019-05-14 18:26:56 +0800 |
---|---|---|
committer | sumneko <sumneko@hotmail.com> | 2019-05-14 18:26:56 +0800 |
commit | 0cdc55764e250d39e330f0aa60a23bb7c7fc1e0e (patch) | |
tree | bdd0d0d94a64d7ed5d5909fbd6f0906507b836d6 /server/publish.lua | |
parent | fef92d5a49353b49e3b8db567e3accbdfd946e83 (diff) | |
download | lua-language-server-0cdc55764e250d39e330f0aa60a23bb7c7fc1e0e.zip |
发布时更新NodeModules失败抛错
Diffstat (limited to 'server/publish.lua')
-rw-r--r-- | server/publish.lua | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/server/publish.lua b/server/publish.lua index a2877dc4..a271e480 100644 --- a/server/publish.lua +++ b/server/publish.lua @@ -22,6 +22,10 @@ local function updateNodeModules(out, postinstall) for line in cmd:lines 'l' do print(line) end + local suc = cmd:close() + if not suc then + error('更新NodeModules失败!') + end fs.current_path(current) end |