Skip to content

Commit

Permalink
feat: log failed request in logfile
Browse files Browse the repository at this point in the history
and not just dump it in messages
  • Loading branch information
teto committed Jul 6, 2023
1 parent 7b21a36 commit 8373dcd
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lua/rest-nvim/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ end
rest.run = function(verbose)
local ok, result = request.get_current_request()
if not ok then
log.error("Failed to run the http request:")
log.error(result)
vim.api.nvim_err_writeln("[rest.nvim] Failed to get the current HTTP request: " .. result)
return
end
Expand Down

0 comments on commit 8373dcd

Please sign in to comment.