Software /
code /
prosody
Comparison
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 |
comparison
equal
deleted
inserted
replaced
13022:a313b7260145 | 13057:20b1526772d2 |
---|---|
667 elseif type(ret) == "string" then | 667 elseif type(ret) == "string" then |
668 show_message(ret); | 668 show_message(ret); |
669 end | 669 end |
670 os.exit(0, true); -- :) | 670 os.exit(0, true); -- :) |
671 else | 671 else |
672 show_message("Failed to execute command: "..error_messages[ret]); | 672 show_message("Failed to execute command: %s", error_messages[ret]); |
673 os.exit(1); -- :( | 673 os.exit(1); -- :( |
674 end | 674 end |
675 end | 675 end |
676 | 676 |
677 if command and not commands[command] then | 677 if command and not commands[command] then |