return original error info when response failed
This commit is contained in:
@@ -45,11 +45,10 @@ local function create_task()
|
||||
end
|
||||
|
||||
if 201 ~= res.status then
|
||||
ngx.log(ngx.ERR, "TASK CREATE *FAILED*", err)
|
||||
ngx.say(err)
|
||||
ngx.exit(res.status)
|
||||
ngx.log(ngx.ERR, "TASK CREATE *FAILED*", res.body)
|
||||
end
|
||||
ngx.say(res.body)
|
||||
ngx.exit(res.status)
|
||||
end
|
||||
|
||||
create_task()
|
||||
|
||||
Reference in New Issue
Block a user