aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2018-03-12 16:05:08 +0100
committerKim Alvefur <zash@zash.se>2018-03-12 16:05:08 +0100
commit2ab7d55007248389b47e61b665f7acd8732456d7 (patch)
tree840e56c3026da16932edcc0d3af717f019cbb462
parent035cc595b96e6fe0cb7f87b0184a4b771f4686cc (diff)
downloadprosody-2ab7d55007248389b47e61b665f7acd8732456d7.tar.gz
prosody-2ab7d55007248389b47e61b665f7acd8732456d7.zip
MUC: Say something about storage failure before aborting (see #1091)
-rw-r--r--plugins/muc/mod_muc.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/plugins/muc/mod_muc.lua b/plugins/muc/mod_muc.lua
index b32515e8..0aa7fcee 100644
--- a/plugins/muc/mod_muc.lua
+++ b/plugins/muc/mod_muc.lua
@@ -39,6 +39,7 @@ local rooms = rooms;
local persistent_rooms_storage = module:open_store("persistent");
local persistent_rooms, err = persistent_rooms_storage:get();
if not persistent_rooms then
+ module:log("error", "Error loading list of persistent rooms from storage. Reload mod_muc or restart to recover.");
assert(not err, err);
persistent_rooms = {};
end