# HG changeset patch # User Kim Alvefur # Date 1576877604 -3600 # Node ID 854586ac7c968e357dcce3dea04631b532f9df4b # Parent 48300484a12435aaf7332c08189446dd84681f4d core.stanza_router: Silence warning about unused err_message [luacheck] diff -r 48300484a124 -r 854586ac7c96 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