aboutsummaryrefslogtreecommitdiffstats
path: root/prosody
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2009-07-18 15:33:16 +0100
committerMatthew Wild <mwild1@gmail.com>2009-07-18 15:33:16 +0100
commitfd0dc078bf261161476a2a14afae696552fe3e46 (patch)
tree37c0f0e1b6fc6b9be5e33424d62d8dbee8944cb3 /prosody
parent1919f4288c24610a884ebe930c8f4ed9a01d07ec (diff)
downloadprosody-fd0dc078bf261161476a2a14afae696552fe3e46.tar.gz
prosody-fd0dc078bf261161476a2a14afae696552fe3e46.zip
prosody: Return success/error from prosody.reload_config()
Diffstat (limited to 'prosody')
-rwxr-xr-xprosody1
1 files changed, 1 insertions, 0 deletions
diff --git a/prosody b/prosody
index d11e463d..4e9ab2cc 100755
--- a/prosody
+++ b/prosody
@@ -106,6 +106,7 @@ function init_global_state()
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