internal: replace error messages from 'io.write' to 'io.stderr:write'

main
bhagwan 3 years ago
parent 1a98c8919d
commit c569296070

@ -40,7 +40,7 @@ local function load_config_section(s, datatype)
vim.fn.chanclose(chan_id)
end)
if not ok then
io.write(("Error loading remote config section '%s': %s\n")
io.stderr:write(("Error loading remote config section '%s': %s\n")
:format(s, errmsg))
elseif type(res) == datatype then
return res

@ -64,6 +64,6 @@ local success, errmsg = pcall(function ()
end)
if not success then
io.write("FzfLua Error:\n\n" .. errmsg .. "\n")
io.stderr:write("FzfLua Error:\n\n" .. errmsg .. "\n")
vim.cmd [[qall]]
end

Loading…
Cancel
Save