aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lua/nvim-treesitter/install.lua5
1 files changed, 3 insertions, 2 deletions
diff --git a/lua/nvim-treesitter/install.lua b/lua/nvim-treesitter/install.lua
index 0cc9806e6..b2d2e4193 100644
--- a/lua/nvim-treesitter/install.lua
+++ b/lua/nvim-treesitter/install.lua
@@ -49,9 +49,10 @@ local function iter_cmd_sync(cmd_list)
print(cmd.info)
end
- vim.fn.system(get_command(cmd))
+ local ret = vim.fn.system(get_command(cmd))
if vim.v.shell_error ~= 0 then
- api.nvim_err_writeln(cmd.err or ("Failed to execute the following command:\n"..vim.inspect(cmd)))
+ print(ret)
+ api.nvim_err_writeln((cmd.err..'\n' or '').."Failed to execute the following command:\n"..vim.inspect(cmd))
return false
end