Software /
code /
prosody
Changeset
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 |
parents | 13022:a313b7260145 |
children | 13059:a47bd6ea7626 13077:de42a93a7c8d |
files | prosodyctl |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
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