From c372e5d38c0d754f0383e33e28ffab05b299b07f Mon Sep 17 00:00:00 2001
From: Waqas Hussain <waqas20@gmail.com>
Date: Wed, 21 Sep 2011 03:25:34 +0500
Subject: modulemanager: Fix undefined global access in handling of module.save
 error handling.

---
 core/modulemanager.lua | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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";
-- 
cgit v1.2.3