# HG changeset patch # User Matthew Wild # Date 1292639373 0 # Node ID 4de73ae451636c146b7f71429ccfd294c04cd54e # Parent 9338d07852777e80e2541c86276585a56cdef565 storagemanager: Log warning when loading the storage provider plugin fails diff -r 9338d0785277 -r 4de73ae45163 core/storagemanager.lua --- 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);