aboutsummaryrefslogtreecommitdiffstats
path: root/prosodyctl
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2010-11-16 13:30:27 +0000
committerMatthew Wild <mwild1@gmail.com>2010-11-16 13:30:27 +0000
commit07243fc7d1fa26213c38130d30e26774a06ac018 (patch)
tree0728c38205c89317474ddb15af714528f1ac90a3 /prosodyctl
parentdb4d9e500c0ec9376de8ebbd18e7d79ff9fbb722 (diff)
downloadprosody-07243fc7d1fa26213c38130d30e26774a06ac018.tar.gz
prosody-07243fc7d1fa26213c38130d30e26774a06ac018.zip
prosodyctl, util.prosodyctl: Show error when mod_posix is not enabled and an attempt is made to query Prosody's status (thanks stever)
Diffstat (limited to 'prosodyctl')
-rwxr-xr-xprosodyctl1
1 files changed, 1 insertions, 0 deletions
diff --git a/prosodyctl b/prosodyctl
index 74dade5f..88cf552c 100755
--- a/prosodyctl
+++ b/prosodyctl
@@ -160,6 +160,7 @@ local error_messages = setmetatable({
["no-such-user"] = "The given user does not exist on the server";
["unable-to-save-data"] = "Unable to store, perhaps you don't have permission?";
["no-pidfile"] = "There is no 'pidfile' option in the configuration file, see http://prosody.im/doc/prosodyctl#pidfile for help";
+ ["no-posix"] = "The mod_posix module is not enabled in the Prosody config file, see http://prosody.im/doc/prosodyctl for more info";
["no-such-method"] = "This module has no commands";
["not-running"] = "Prosody is not running";
}, { __index = function (t,k) return "Error: "..(tostring(k):gsub("%-", " "):gsub("^.", string.upper)); end });