# HG changeset patch # User Kim Alvefur # Date 1611253208 -3600 # Node ID d0d64655e584ee73ff3c9f6e38c50b2607f9d678 # Parent abe8cd8fad142ff7b30052c2434efc30a8bcb525 prosodyctl: Move message after condition If the condition is false, the message becomes a lie! diff -r abe8cd8fad14 -r d0d64655e584 prosodyctl --- a/prosodyctl Thu Jan 21 19:18:38 2021 +0100 +++ b/prosodyctl Thu Jan 21 19:20:08 2021 +0100 @@ -78,7 +78,6 @@ show_usage([[install]], [[Installs a prosody/luarocks plugin]]); return 1; end - show_message("Installing %s in %s", arg[1], prosody.paths.installer); -- TODO finalize config option name local server = configmanager.get("*", "plugin_server"); if not server then @@ -86,6 +85,7 @@ -- see https://prosody.im/doc/TODO documentation return 1; end + show_message("Installing %s in %s", arg[1], prosody.paths.installer); local ret = call_luarocks("install", arg[1], server); if ret == 0 then prosodyctl.show_module_configuration_help(arg[1]);