Software /
code /
prosody
Comparison
core/stanza_router.lua @ 10529:854586ac7c96
core.stanza_router: Silence warning about unused err_message [luacheck]
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Fri, 20 Dec 2019 22:33:24 +0100 |
parent | 10528:48300484a124 |
child | 10639:08e3063eb1ac |
comparison
equal
deleted
inserted
replaced
10528:48300484a124 | 10529:854586ac7c96 |
---|---|
26 if xmlns == "jabber:client" and valid_stanzas[name] then | 26 if xmlns == "jabber:client" and valid_stanzas[name] then |
27 -- A normal stanza | 27 -- A normal stanza |
28 local st_type = stanza.attr.type; | 28 local st_type = stanza.attr.type; |
29 if st_type == "error" or (name == "iq" and st_type == "result") then | 29 if st_type == "error" or (name == "iq" and st_type == "result") then |
30 if st_type == "error" then | 30 if st_type == "error" then |
31 local err_type, err_condition, err_message = stanza:get_error(); | 31 local err_type, err_condition, err_message = stanza:get_error(); -- luacheck: ignore 211/err_message |
32 log("debug", "Discarding unhandled error %s (%s, %s) from %s: %s", | 32 log("debug", "Discarding unhandled error %s (%s, %s) from %s: %s", |
33 name, err_type, err_condition or "unknown condition", origin_type, stanza:top_tag()); | 33 name, err_type, err_condition or "unknown condition", origin_type, stanza:top_tag()); |
34 else | 34 else |
35 log("debug", "Discarding %s from %s of type: %s", name, origin_type, st_type or '<nil>'); | 35 log("debug", "Discarding %s from %s of type: %s", name, origin_type, st_type or '<nil>'); |
36 end | 36 end |