Changeset

3770:4de73ae45163

storagemanager: Log warning when loading the storage provider plugin fails
author Matthew Wild <mwild1@gmail.com>
date Sat, 18 Dec 2010 02:29:33 +0000
parents 3769:9338d0785277
children 3771:428882c438bf
files core/storagemanager.lua
diffstat 1 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/core/storagemanager.lua	Fri Dec 17 22:32:21 2010 +0000
+++ b/core/storagemanager.lua	Sat Dec 18 02:29:33 2010 +0000
@@ -46,7 +46,10 @@
 	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);