aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2024-10-29 14:10:02 +0100
committerKim Alvefur <zash@zash.se>2024-10-29 14:10:02 +0100
commit73b512d3a6b988a89852cb7bf027daf8a90a9100 (patch)
tree28cc11df005b32810376d54582a66e329ed06d76 /plugins
parentff05b0773d91b5449e382db943d99db4dd7bbfbb (diff)
downloadprosody-73b512d3a6b988a89852cb7bf027daf8a90a9100.tar.gz
prosody-73b512d3a6b988a89852cb7bf027daf8a90a9100.zip
util.error: Use is_error() instead of is_err() everywhere
Continuation of 4b39691a274e
Diffstat (limited to 'plugins')
-rw-r--r--plugins/mod_s2s.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/mod_s2s.lua b/plugins/mod_s2s.lua
index 04fd5bc3..45684f9a 100644
--- a/plugins/mod_s2s.lua
+++ b/plugins/mod_s2s.lua
@@ -153,7 +153,7 @@ local function bounce_sendq(session, reason)
if session.had_stream then -- set when a stream is opened by the remote
error_type, condition = "wait", "remote-server-timeout";
end
- if errors.is_err(reason) then
+ if errors.is_error(reason) then
error_type, condition, reason_text = reason.type, reason.condition, reason.text;
elseif type(reason) == "string" then
reason_text = reason;