aboutsummaryrefslogtreecommitdiffstats
path: root/core/modulemanager.lua
diff options
context:
space:
mode:
authorWaqas Hussain <waqas20@gmail.com>2011-09-21 03:25:34 +0500
committerWaqas Hussain <waqas20@gmail.com>2011-09-21 03:25:34 +0500
commitc372e5d38c0d754f0383e33e28ffab05b299b07f (patch)
tree68d9e1a068a08f2fdc8892158bd99d747c8d9960 /core/modulemanager.lua
parent1b9a04c3fb142b00d8bb966da1beba2ccc71b0d2 (diff)
downloadprosody-c372e5d38c0d754f0383e33e28ffab05b299b07f.tar.gz
prosody-c372e5d38c0d754f0383e33e28ffab05b299b07f.zip
modulemanager: Fix undefined global access in handling of module.save error handling.
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 8d4d5633..2d1eeb77 100644
--- a/core/modulemanager.lua
+++ b/core/modulemanager.lua
@@ -215,7 +215,7 @@ function reload(host, name, ...)
if ok then
saved = ret;
else
- log("warn", "Error saving module '%s:%s' state: %s", host, module, ret);
+ log("warn", "Error saving module '%s:%s' state: %s", host, name, ret);
if not config.get(host, "core", "force_module_reload") then
log("warn", "Aborting reload due to error, set force_module_reload to ignore this");
return nil, "save-state-failed";