refactor(runner): write error message on error

This commit is contained in:
Smirnov Oleksandr 2023-08-10 12:00:48 +03:00
parent 658027ccec
commit 66b583ce35

View file

@ -15,6 +15,9 @@ function runner.sync(cmd, opts)
command = cmd, command = cmd,
args = opts.args, args = opts.args,
cwd = opts.cwd, cwd = opts.cwd,
on_stderr = function(_, data)
vim.print(data)
end,
on_exit = function(data, status) on_exit = function(data, status)
output = data:result() output = data:result()
vim.schedule(function() vim.schedule(function()