refactor(runner): write error message on error
This commit is contained in:
parent
658027ccec
commit
66b583ce35
1 changed files with 3 additions and 0 deletions
|
|
@ -15,6 +15,9 @@ function runner.sync(cmd, opts)
|
|||
command = cmd,
|
||||
args = opts.args,
|
||||
cwd = opts.cwd,
|
||||
on_stderr = function(_, data)
|
||||
vim.print(data)
|
||||
end,
|
||||
on_exit = function(data, status)
|
||||
output = data:result()
|
||||
vim.schedule(function()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue