From 73b512d3a6b988a89852cb7bf027daf8a90a9100 Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Tue, 29 Oct 2024 14:10:02 +0100 Subject: util.error: Use is_error() instead of is_err() everywhere Continuation of 4b39691a274e --- plugins/mod_s2s.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'plugins') 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; -- cgit v1.2.3