aboutsummaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2013-04-23 15:14:47 +0100
committerMatthew Wild <mwild1@gmail.com>2013-04-23 15:14:47 +0100
commita272d49260f7f211bc3fc290ac71ab77da2a9962 (patch)
treec9352f3197224088a16296c217e43ec770b21177 /core
parentbc2cf7ee1976a358b1bead2fb047e71576b66d10 (diff)
parent06aa0018490c09f664e6a4f6233b29879b889263 (diff)
downloadprosody-a272d49260f7f211bc3fc290ac71ab77da2a9962.tar.gz
prosody-a272d49260f7f211bc3fc290ac71ab77da2a9962.zip
Merge 0.9->trunk
Diffstat (limited to 'core')
-rw-r--r--core/moduleapi.lua2
-rw-r--r--core/storagemanager.lua2
2 files changed, 2 insertions, 2 deletions
diff --git a/core/moduleapi.lua b/core/moduleapi.lua
index a8e6881e..30360f73 100644
--- a/core/moduleapi.lua
+++ b/core/moduleapi.lua
@@ -338,7 +338,7 @@ function api:load_resource(path, mode)
end
function api:open_store(name, type)
- return storagemanager.open(self.host, name, type);
+ return storagemanager.open(self.host, name or self.name, type);
end
return api;
diff --git a/core/storagemanager.lua b/core/storagemanager.lua
index 36a671be..1c82af6d 100644
--- a/core/storagemanager.lua
+++ b/core/storagemanager.lua
@@ -86,7 +86,7 @@ function open(host, store, typ)
if not ret then
if err == "unsupported-store" then
log("debug", "Storage driver %s does not support store %s (%s), falling back to null driver",
- driver_name, store, typ);
+ driver_name, store, typ or "<nil>");
ret = null_storage_driver;
err = nil;
end