Mercurial > prosody-hg
comparison 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 |
| parents | 078780f262d5 |
| children | 902d25cd0557 |
comparison
equal
deleted
inserted
replaced
| 13533:c885594f7f9a | 13534:d532176d4334 |
|---|---|
| 151 local condition = "remote-server-not-found"; | 151 local condition = "remote-server-not-found"; |
| 152 local reason_text; | 152 local reason_text; |
| 153 if session.had_stream then -- set when a stream is opened by the remote | 153 if session.had_stream then -- set when a stream is opened by the remote |
| 154 error_type, condition = "wait", "remote-server-timeout"; | 154 error_type, condition = "wait", "remote-server-timeout"; |
| 155 end | 155 end |
| 156 if errors.is_err(reason) then | 156 if errors.is_error(reason) then |
| 157 error_type, condition, reason_text = reason.type, reason.condition, reason.text; | 157 error_type, condition, reason_text = reason.type, reason.condition, reason.text; |
| 158 elseif type(reason) == "string" then | 158 elseif type(reason) == "string" then |
| 159 reason_text = reason; | 159 reason_text = reason; |
| 160 end | 160 end |
| 161 for i, stanza in ipairs(sendq) do | 161 for i, stanza in ipairs(sendq) do |
