aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2017-04-21 14:20:46 +0200
committerKim Alvefur <zash@zash.se>2017-04-21 14:20:46 +0200
commitc732b4835fde723ab0555688a7e8f3b40ef86b11 (patch)
tree44105c16c9555c26fe47699a67eaf7343f46c7fd
parent3c2a15fa08b2253125d5a0f6934a2357083c4ef8 (diff)
downloadprosody-c732b4835fde723ab0555688a7e8f3b40ef86b11.tar.gz
prosody-c732b4835fde723ab0555688a7e8f3b40ef86b11.zip
prosodyctl: Return non-zero status to indicate error
-rwxr-xr-xprosodyctl2
1 files changed, 1 insertions, 1 deletions
diff --git a/prosodyctl b/prosodyctl
index 4d947179..57899607 100755
--- a/prosodyctl
+++ b/prosodyctl
@@ -838,7 +838,7 @@ function commands.cert(arg)
end
if arg[1] ~= "--help" and not hosts[arg[1]] then
show_message(error_messages["no-such-host"]);
- return
+ return 1;
end
return cert_commands[subcmd](arg);
end