aboutsummaryrefslogtreecommitdiffstats
path: root/core/modulemanager.lua
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2009-06-08 13:25:10 +0100
committerMatthew Wild <mwild1@gmail.com>2009-06-08 13:25:10 +0100
commitaa79672dbdd1bef94119e520daacb47ac06d3935 (patch)
treeaa161208c8e389dc9ecd23f35fe518dbd2d3c2f1 /core/modulemanager.lua
parentca7b97cf41f352191767af2cd6d95ad0b17a4a45 (diff)
downloadprosody-aa79672dbdd1bef94119e520daacb47ac06d3935.tar.gz
prosody-aa79672dbdd1bef94119e520daacb47ac06d3935.zip
modulemanager: Use module_name in log entry to fix 'error initialising module "nil"' error
Diffstat (limited to 'core/modulemanager.lua')
-rw-r--r--core/modulemanager.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/modulemanager.lua b/core/modulemanager.lua
index 187e4d6e..004b7dfb 100644
--- a/core/modulemanager.lua
+++ b/core/modulemanager.lua
@@ -128,7 +128,7 @@ function load(host, module_name, config)
local success, ret = pcall(mod);
if not success then
- log("error", "Error initialising module '%s': %s", name or "nil", ret or "nil");
+ log("error", "Error initialising module '%s': %s", module_name or "nil", ret or "nil");
return nil, ret;
end