modulemanager: Use module_name in log entry to fix 'error initialising module "nil"' error

Mon, 08 Jun 2009 13:25:10 +0100

author
Matthew Wild <mwild1@gmail.com>
date
Mon, 08 Jun 2009 13:25:10 +0100
changeset 1330
baad431dabc5
parent 1329
599a058d3961
child 1331
4443309b5528
child 1333
d74441a2f3e8

modulemanager: Use module_name in log entry to fix 'error initialising module "nil"' error

core/modulemanager.lua file | annotate | diff | comparison | revisions
--- 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
 	

mercurial