From d35c2451b86a6f2c0c9a4fd86f4cbefe0bfbf344 Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Thu, 21 Jan 2021 19:20:08 +0100 Subject: prosodyctl: Move message after condition If the condition is false, the message becomes a lie! --- prosodyctl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/prosodyctl b/prosodyctl index def0b7e2..898ea1ce 100755 --- a/prosodyctl +++ b/prosodyctl @@ -78,7 +78,6 @@ function commands.install(arg) 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 @@ function commands.install(arg) -- 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]); -- cgit v1.2.3