Software /
code /
prosody
Comparison
prosodyctl @ 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 |
parent | 8105:851b50401a26 |
child | 8107:83d776b344ad |
comparison
equal
deleted
inserted
replaced
8105:851b50401a26 | 8106:86ec9045d095 |
---|---|
836 show_message"You need to supply at least one hostname" | 836 show_message"You need to supply at least one hostname" |
837 arg = { "--help" }; | 837 arg = { "--help" }; |
838 end | 838 end |
839 if arg[1] ~= "--help" and not hosts[arg[1]] then | 839 if arg[1] ~= "--help" and not hosts[arg[1]] then |
840 show_message(error_messages["no-such-host"]); | 840 show_message(error_messages["no-such-host"]); |
841 return | 841 return 1; |
842 end | 842 end |
843 return cert_commands[subcmd](arg); | 843 return cert_commands[subcmd](arg); |
844 end | 844 end |
845 end | 845 end |
846 show_usage("cert config|request|generate|key", "Helpers for generating X.509 certificates and keys.") | 846 show_usage("cert config|request|generate|key", "Helpers for generating X.509 certificates and keys.") |