# HG changeset patch # User Matthew Wild # Date 1680879299 -3600 # Node ID 20b1526772d2ead636be5b3efb420e16ccb0369e # Parent a313b72601459547f7497fe174428c388915cbc4 prosodyctl: Fix using variable content in a format string This broke if the error message contained a format specified such as '%s'. diff -r a313b7260145 -r 20b1526772d2 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