aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2018-03-16 21:59:41 +0100
committerKim Alvefur <zash@zash.se>2018-03-16 21:59:41 +0100
commit3ccd3d28f7c44b957dbaca575759452f014720ba (patch)
tree4d145c623b794811f1e84a9145d59ca7e33120de /plugins
parent708f54446bbd04633f9672126ed4278b799d823b (diff)
downloadprosody-3ccd3d28f7c44b957dbaca575759452f014720ba.tar.gz
prosody-3ccd3d28f7c44b957dbaca575759452f014720ba.zip
MUC: Log failure to load room state
Diffstat (limited to 'plugins')
-rw-r--r--plugins/muc/mod_muc.lua5
1 files changed, 4 insertions, 1 deletions
diff --git a/plugins/muc/mod_muc.lua b/plugins/muc/mod_muc.lua
index 242178ae..a3c6cb81 100644
--- a/plugins/muc/mod_muc.lua
+++ b/plugins/muc/mod_muc.lua
@@ -158,7 +158,10 @@ local function restore_room(jid)
local data, err = room_configs:get(node);
if data then
module:log("debug", "Restoring room %s from storage", jid);
- local state = room_state:get(node);
+ local state, s_err = room_state:get(node);
+ if not state and s_err then
+ module:log("debug", "Could not restore state of room %s: %s", jid, s_err);
+ end
local room = muclib.restore_room(data, state);
return track_room(room);
elseif err then