aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mod_mam/mod_mam.lua
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2018-10-25 21:58:22 +0200
committerKim Alvefur <zash@zash.se>2018-10-25 21:58:22 +0200
commite2910e8847447c782b90c7919d8b58d6c0469919 (patch)
treef29adceac7b429d7e6df348b175543cef7644d6b /plugins/mod_mam/mod_mam.lua
parent182e80684ff810a54b5de808751abc11e42e87c0 (diff)
downloadprosody-e2910e8847447c782b90c7919d8b58d6c0469919.tar.gz
prosody-e2910e8847447c782b90c7919d8b58d6c0469919.zip
mod_mam: Upgrade case of invalid archive store driver to hard error
Diffstat (limited to 'plugins/mod_mam/mod_mam.lua')
-rw-r--r--plugins/mod_mam/mod_mam.lua7
1 files changed, 2 insertions, 5 deletions
diff --git a/plugins/mod_mam/mod_mam.lua b/plugins/mod_mam/mod_mam.lua
index 01dae613..cb4b686b 100644
--- a/plugins/mod_mam/mod_mam.lua
+++ b/plugins/mod_mam/mod_mam.lua
@@ -41,11 +41,8 @@ local archive_store = module:get_option_string("archive_store", "archive");
local archive = module:open_store(archive_store, "archive");
if not archive.find then
- module:log("debug", "Attempt to open archive storage returned a valid driver but it does not seem to implement the storage API");
- module:log("debug", "mod_%s does not support archiving", archive._provided_by or archive.name and "storage_"..archive.name.."(?)" or "<unknown>");
- module:log("debug", "See https://prosody.im/doc/storage and https://prosody.im/doc/archiving for more information");
- module:log("info", "Using in-memory fallback archive driver");
- archive = module:require "fallback_archive";
+ error("mod_"..(archive._provided_by or archive.name and "storage_"..archive.name).." does not support archiving\n"
+ .."See https://prosody.im/doc/storage and https://prosody.im/doc/archiving for more information");
end
local use_total = module:get_option_boolean("mam_include_total", true);