mirror of
https://github.com/bjc/prosody.git
synced 2025-04-03 21:27:38 +03:00
util.error: Use is_error() instead of is_err() everywhere
Continuation of 4b39691a274e
This commit is contained in:
parent
ff05b0773d
commit
73b512d3a6
3 changed files with 9 additions and 9 deletions
|
@ -206,7 +206,7 @@ local function handle_result(request, response, result)
|
|||
end
|
||||
elseif result_type == "string" then
|
||||
body = result;
|
||||
elseif errors.is_err(result) then
|
||||
elseif errors.is_error(result) then
|
||||
response.status_code = result.code or 500;
|
||||
body = events.fire_event("http-error", { request = request, response = response, code = result.code or 500, error = result });
|
||||
elseif promise.is_promise(result) then
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue