Skip to content

Commit

Permalink
fix: send error to qlist and skip showing the result
Browse files Browse the repository at this point in the history
  • Loading branch information
jellydn committed Oct 31, 2023
1 parent 3e2c8c5 commit 6799811
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lua/hurl/main.lua
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ local function request(opts, callback)
-- Send error code and response to quickfix and open it
vim.fn.setqflist({ { filename = vim.inspect(cmd), text = vim.inspect(response.body) } })
vim.cmd('copen')
return
end

vim.notify('hurl: request finished', vim.log.levels.INFO)
Expand Down

0 comments on commit 6799811

Please sign in to comment.