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

This commit is contained in:
bhagwan 2021-12-12 18:52:13 -08:00
parent 1a98c8919d
commit c569296070
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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