prosodyctl: Fix using variable content in a format string 0.12
authorMatthew Wild <mwild1@gmail.com>
Fri, 07 Apr 2023 15:54:59 +0100
branch0.12
changeset 13061 20b1526772d2
parent 13026 a313b7260145
child 13063 a47bd6ea7626
child 13081 de42a93a7c8d
prosodyctl: Fix using variable content in a format string This broke if the error message contained a format specified such as '%s'.
prosodyctl
--- a/prosodyctl	Sun Apr 02 10:40:48 2023 +0200
+++ b/prosodyctl	Fri Apr 07 15:54:59 2023 +0100
@@ -669,7 +669,7 @@
 			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