Software /
code /
prosody
Diff
prosodyctl @ 13057:20b1526772d2 0.12
prosodyctl: Fix using variable content in a format string
This broke if the error message contained a format specified such as '%s'.
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Fri, 07 Apr 2023 15:54:59 +0100 |
parent | 12863:891edd1ebde6 |
child | 13059:a47bd6ea7626 |
line wrap: on
line diff
--- 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