Software /
code /
prosody
Diff
core/modulemanager.lua @ 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 |
parent | 1328:0709c9564b1c |
child | 1334:6846c5cc9ce2 |
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