We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f1a45ac commit 40634faCopy full SHA for 40634fa
1 file changed
lua/plenary/curl.lua
@@ -244,6 +244,15 @@ request = function(specs)
244
command = "curl",
245
args = args,
246
on_exit = function(j, code)
247
+ if code ~= 0 then
248
+ error(string.format(
249
+ "%s %s - curl error exit_code=%s stderr=%s",
250
+ opts.method,
251
+ opts.url,
252
+ code,
253
+ vim.inspect(j:stderr_result())
254
+ ))
255
+ end
256
local output = parse.response(j:result(), opts.dump[2], code)
257
if opts.callback then
258
return opts.callback(output)
0 commit comments