Changeset

4383:718445c040c4

modulemanager: Fix undefined global access in handling of module.save error handling.
author Waqas Hussain <waqas20@gmail.com>
date Wed, 21 Sep 2011 03:25:34 +0500
parents 4382:29581d16450c
children 4384:7fbcb7e6a6a0
files core/modulemanager.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/core/modulemanager.lua	Wed Sep 21 03:23:47 2011 +0500
+++ b/core/modulemanager.lua	Wed Sep 21 03:25:34 2011 +0500
@@ -215,7 +215,7 @@
 		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";