Software /
code /
prosody
Changeset
1557:64837ed2d112
prosody: Return success/error from prosody.reload_config()
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Sat, 18 Jul 2009 15:33:16 +0100 |
parents | 1556:8154aa1fbe6c |
children | 1558:e15917530285 |
files | prosody |
diffstat | 1 files changed, 1 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/prosody Sat Jul 18 15:11:10 2009 +0100 +++ b/prosody Sat Jul 18 15:33:16 2009 +0100 @@ -106,6 +106,7 @@ log("error", "Couldn't read the config file when trying to reload: %s", tostring(err)); end end + return ok, (err and tostring(level)..": "..tostring(err)) or nil; end -- Function to reopen logfiles