Skip to content

Commit 8373dcd

Browse files
author
Matthieu Coudron
committed
feat: log failed request in logfile
and not just dump it in messages
1 parent 7b21a36 commit 8373dcd

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lua/rest-nvim/init.lua

+2
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ end
1717
rest.run = function(verbose)
1818
local ok, result = request.get_current_request()
1919
if not ok then
20+
log.error("Failed to run the http request:")
21+
log.error(result)
2022
vim.api.nvim_err_writeln("[rest.nvim] Failed to get the current HTTP request: " .. result)
2123
return
2224
end

0 commit comments

Comments
 (0)