diff options
author | Kim Alvefur <zash@zash.se> | 2024-10-29 14:10:02 +0100 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2024-10-29 14:10:02 +0100 |
commit | 73b512d3a6b988a89852cb7bf027daf8a90a9100 (patch) | |
tree | 28cc11df005b32810376d54582a66e329ed06d76 /net | |
parent | ff05b0773d91b5449e382db943d99db4dd7bbfbb (diff) | |
download | prosody-73b512d3a6b988a89852cb7bf027daf8a90a9100.tar.gz prosody-73b512d3a6b988a89852cb7bf027daf8a90a9100.zip |
util.error: Use is_error() instead of is_err() everywhere
Continuation of 4b39691a274e
Diffstat (limited to 'net')
-rw-r--r-- | net/http/server.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/http/server.lua b/net/http/server.lua index edc6d879..1ef42b2e 100644 --- a/net/http/server.lua +++ b/net/http/server.lua @@ -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 |