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,
|
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()
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue