# HG changeset patch # User Matthew Wild # Date 1527710529 -3600 # Node ID bc8558bbc7977c83f53252e73c296d2d29afea61 # Parent 4a5ff09887a42a2af52c4a9cf75dcec45d678a5c MUC: Fix error logged when no persistent rooms present diff -r 4a5ff09887a4 -r bc8558bbc797 plugins/muc/mod_muc.lua --- a/plugins/muc/mod_muc.lua Wed May 30 10:58:19 2018 +0200 +++ b/plugins/muc/mod_muc.lua Wed May 30 21:02:09 2018 +0100 @@ -39,8 +39,11 @@ 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); + if err then + module:log("error", "Error loading list of persistent rooms from storage. Reload mod_muc or restart to recover."); + error("Storage error: "..err); + end + module:log("debug", "No persistent rooms found in the database"); persistent_rooms = {}; end local room_configs = module:open_store("config");