From 6d8647b3334818717c880418982b202daa9da154 Mon Sep 17 00:00:00 2001 From: Matthew Wild Date: Fri, 7 Apr 2023 15:54:59 +0100 Subject: prosodyctl: Fix using variable content in a format string This broke if the error message contained a format specified such as '%s'. --- prosodyctl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'prosodyctl') diff --git a/prosodyctl b/prosodyctl index 35c06220..e769ed5d 100755 --- a/prosodyctl +++ b/prosodyctl @@ -669,7 +669,7 @@ local command_runner = async.runner(function () end os.exit(0, true); -- :) else - show_message("Failed to execute command: "..error_messages[ret]); + show_message("Failed to execute command: %s", error_messages[ret]); os.exit(1); -- :( end end -- cgit v1.2.3