From aa79672dbdd1bef94119e520daacb47ac06d3935 Mon Sep 17 00:00:00 2001 From: Matthew Wild Date: Mon, 8 Jun 2009 13:25:10 +0100 Subject: modulemanager: Use module_name in log entry to fix 'error initialising module "nil"' error --- core/modulemanager.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/modulemanager.lua b/core/modulemanager.lua index 187e4d6e..004b7dfb 100644 --- a/core/modulemanager.lua +++ b/core/modulemanager.lua @@ -128,7 +128,7 @@ function load(host, module_name, config) 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 -- cgit v1.2.3