diff options
author | Matthew Wild <mwild1@gmail.com> | 2010-12-18 02:29:33 +0000 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2010-12-18 02:29:33 +0000 |
commit | c8333f80b50e34a60f8e81ed2bbd021bebfe954e (patch) | |
tree | eca74197eba27fe600c30f86e430e4c2457ed837 | |
parent | 1f3e0e60e4320c4536c5c73af7daedfaaaf400bf (diff) | |
download | prosody-c8333f80b50e34a60f8e81ed2bbd021bebfe954e.tar.gz prosody-c8333f80b50e34a60f8e81ed2bbd021bebfe954e.zip |
storagemanager: Log warning when loading the storage provider plugin fails
-rw-r--r-- | core/storagemanager.lua | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/core/storagemanager.lua b/core/storagemanager.lua index e0c12190..3be193a2 100644 --- a/core/storagemanager.lua +++ b/core/storagemanager.lua @@ -46,7 +46,10 @@ local function load_driver(host, driver_name) local driver = stores_available:get(host, driver_name); if driver then return driver; end if driver_name ~= "internal" then - modulemanager.load(host, "storage_"..driver_name); + local ok, err = modulemanager.load(host, "storage_"..driver_name); + if not ok then + log("error", "Failed to load storage driver plugin %s: %s", driver_name, err); + end return stores_available:get(host, driver_name); else return setmetatable({host = host}, default_driver_mt); |