Comparison

core/modulemanager.lua @ 1386:9132f16666e4

modulemanager: Fix copy/paste error, should be name instead of module_name
author Matthew Wild <mwild1@gmail.com>
date Mon, 22 Jun 2009 21:54:34 +0100
parent 1378:d09ecc8ee1ef
child 1389:846df07536eb
comparison
equal deleted inserted replaced
1385:8999dd4253f9 1386:9132f16666e4
195 local mod = get_module(host, name); 195 local mod = get_module(host, name);
196 if not mod then return nil, "module-not-loaded"; end 196 if not mod then return nil, "module-not-loaded"; end
197 197
198 local _mod, err = pluginloader.load_code(name); -- checking for syntax errors 198 local _mod, err = pluginloader.load_code(name); -- checking for syntax errors
199 if not _mod then 199 if not _mod then
200 log("error", "Unable to load module '%s': %s", module_name or "nil", err or "nil"); 200 log("error", "Unable to load module '%s': %s", name or "nil", err or "nil");
201 return nil, err; 201 return nil, err;
202 end 202 end
203 203
204 local saved; 204 local saved;
205 205