Changeset

8106:86ec9045d095

prosodyctl: Return non-zero status to indicate error
author Kim Alvefur <zash@zash.se>
date Fri, 21 Apr 2017 14:20:46 +0200
parents 8105:851b50401a26
children 8107:83d776b344ad
files prosodyctl
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/prosodyctl	Fri Apr 21 13:29:04 2017 +0200
+++ b/prosodyctl	Fri Apr 21 14:20:46 2017 +0200
@@ -838,7 +838,7 @@
 			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