prosody: Return success/error from prosody.reload_config()

Sat, 18 Jul 2009 15:33:16 +0100

author
Matthew Wild <mwild1@gmail.com>
date
Sat, 18 Jul 2009 15:33:16 +0100
changeset 1557
64837ed2d112
parent 1556
8154aa1fbe6c
child 1558
e15917530285

prosody: Return success/error from prosody.reload_config()

prosody file | annotate | diff | comparison | revisions
--- 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

mercurial