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