# HG changeset patch # User Matthew Wild # Date 1247927596 -3600 # Node ID 64837ed2d1127b0920795965ef6a3af892e3b3ac # Parent 8154aa1fbe6cebf11b290600f55371122b87cc65 prosody: Return success/error from prosody.reload_config() diff -r 8154aa1fbe6c -r 64837ed2d112 prosody --- 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