fixup! refactor(runner.gocmd): use vim.system
This commit is contained in:
parent
3688a65cf9
commit
f44a5d51b9
1 changed files with 3 additions and 3 deletions
|
|
@ -34,13 +34,13 @@ function gocmd.run(subcmd, args)
|
||||||
args = handle_generate_cmd(args)
|
args = handle_generate_cmd(args)
|
||||||
end
|
end
|
||||||
|
|
||||||
r.async({ c.go, unpack(args) }, function(opt)
|
r.async({ c.go, subcmd, unpack(args) }, function(opt)
|
||||||
if opt.code ~= 0 then
|
if opt.code ~= 0 then
|
||||||
log.error("go " .. subcmd .. " failed: " .. opt.stderr)
|
log.error("go " .. subcmd .. " failed: " .. vim.inspect(opt))
|
||||||
error("go " .. subcmd .. " failed: " .. opt.stderr)
|
error("go " .. subcmd .. " failed: " .. opt.stderr)
|
||||||
end
|
end
|
||||||
|
|
||||||
u.notify("go " .. subcmd .. " output: " .. opt.stdout)
|
u.deferred_notify("go " .. subcmd .. "ran successfully, output: " .. opt.stdout)
|
||||||
end)
|
end)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue