Changeset

1330:baad431dabc5

modulemanager: Use module_name in log entry to fix 'error initialising module "nil"' error
author Matthew Wild <mwild1@gmail.com>
date Mon, 08 Jun 2009 13:25:10 +0100
parents 1329:599a058d3961
children 1331:4443309b5528 1333:d74441a2f3e8
files core/modulemanager.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/core/modulemanager.lua	Sun Jun 07 17:44:48 2009 +0100
+++ b/core/modulemanager.lua	Mon Jun 08 13:25:10 2009 +0100
@@ -128,7 +128,7 @@
 	
 	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