Software /
code /
prosody
Diff
core/configmanager.lua @ 793:55add3b87c01
Report errors in the config file to the user
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Fri, 13 Feb 2009 14:37:15 +0000 |
parent | 760:90ce865eebd8 |
child | 794:912dc389935a |
line wrap: on
line diff
--- a/core/configmanager.lua Fri Feb 13 10:54:25 2009 +0000 +++ b/core/configmanager.lua Fri Feb 13 14:37:15 2009 +0000 @@ -68,15 +68,15 @@ if f then local ok, err = parsers[format].load(f:read("*a")); f:close(); - return ok, err; + return ok, "parser", err; end - return f, err; + return f, "file", err; end if not format then - return nil, "no parser specified"; + return nil, "file", "no parser specified"; else - return nil, "no parser for "..(format); + return nil, "file", "no parser for "..(format); end end