mod_smacks: Log error to silence luacheck
authorKim Alvefur <zash@zash.se>
Fri, 31 Dec 2021 00:59:10 +0100
changeset 12141 4e61aaa4e9b2
parent 12140 6366240d2edb
child 12142 644ca3583837
mod_smacks: Log error to silence luacheck
plugins/mod_smacks.lua
--- a/plugins/mod_smacks.lua	Fri Dec 31 00:48:38 2021 +0100
+++ b/plugins/mod_smacks.lua	Fri Dec 31 00:59:10 2021 +0100
@@ -297,6 +297,8 @@
 				keep[token] = info;
 			end
 			all_old_sessions:set(session.username, keep);
+		elseif err then
+			module:log("error", "Unable to retrieve old resumption counters: %s", err);
 		end
 	end