mirror of
https://github.com/Ascyii/telekasten.nvim.git
synced 2026-01-01 06:14:23 -05:00
Help #68 with (hopefully) more error output
This commit is contained in:
@@ -112,9 +112,14 @@ M.do_find_all_tags = function(opts)
|
||||
args = args,
|
||||
enable_recording = true,
|
||||
on_exit = function(j, return_val)
|
||||
if return_val == 0 then
|
||||
for _, line in pairs(j:result()) do
|
||||
parse_entry(opts, line, ret)
|
||||
end
|
||||
else
|
||||
print("rg return value: " .. tostring(return_val))
|
||||
print("stderr: ", vim.inspect(j:stderr_result()))
|
||||
end
|
||||
end,
|
||||
on_stderr = function(err, data, _)
|
||||
print("error: " .. tostring(err) .. "data: " .. data)
|
||||
|
||||
Reference in New Issue
Block a user