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
commit451ec7734c8e9741e6d21b1e6839db16e46f7ca4 (patch)
tree44105c16c9555c26fe47699a67eaf7343f46c7fd
parent4b189254a79425533ab469e1c9b5a2017e8335ea (diff)
downloadprosody-451ec7734c8e9741e6d21b1e6839db16e46f7ca4.tar.gz
prosody-451ec7734c8e9741e6d21b1e6839db16e46f7ca4.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