core.stanza_router: Silence warning about unused err_message [luacheck]
authorKim Alvefur <zash@zash.se>
Fri, 20 Dec 2019 22:33:24 +0100
changeset 10533 854586ac7c96
parent 10532 48300484a124
child 10534 67d56dacc79c
core.stanza_router: Silence warning about unused err_message [luacheck]
core/stanza_router.lua
--- a/core/stanza_router.lua	Fri Dec 20 22:31:27 2019 +0100
+++ b/core/stanza_router.lua	Fri Dec 20 22:33:24 2019 +0100
@@ -28,7 +28,7 @@
 		local st_type = stanza.attr.type;
 		if st_type == "error" or (name == "iq" and st_type == "result") then
 			if st_type == "error" then
-				local err_type, err_condition, err_message = stanza:get_error();
+				local err_type, err_condition, err_message = stanza:get_error(); -- luacheck: ignore 211/err_message
 				log("debug", "Discarding unhandled error %s (%s, %s) from %s: %s",
 					name, err_type, err_condition or "unknown condition", origin_type, stanza:top_tag());
 			else