Diff

plugins/mod_s2s.lua @ 13534:d532176d4334

util.error: Use is_error() instead of is_err() everywhere Continuation of 4b39691a274e
author Kim Alvefur <zash@zash.se>
date Tue, 29 Oct 2024 14:10:02 +0100
parent 13516:078780f262d5
child 13554:902d25cd0557
line wrap: on
line diff
--- a/plugins/mod_s2s.lua	Sun Oct 27 15:23:45 2024 +0100
+++ b/plugins/mod_s2s.lua	Tue Oct 29 14:10:02 2024 +0100
@@ -153,7 +153,7 @@
 	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;