aboutsummaryrefslogtreecommitdiffstats
path: root/prosodyctl
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2023-04-07 15:54:59 +0100
committerMatthew Wild <mwild1@gmail.com>2023-04-07 15:54:59 +0100
commit6d8647b3334818717c880418982b202daa9da154 (patch)
tree34c9fb948028ce7a970725a7df91ddb05ba3c99e /prosodyctl
parentd840f273201196765e75c97370efa4cd2ed8d75d (diff)
downloadprosody-6d8647b3334818717c880418982b202daa9da154.tar.gz
prosody-6d8647b3334818717c880418982b202daa9da154.zip
prosodyctl: Fix using variable content in a format string
This broke if the error message contained a format specified such as '%s'.
Diffstat (limited to 'prosodyctl')
-rwxr-xr-xprosodyctl2
1 files changed, 1 insertions, 1 deletions
diff --git a/prosodyctl b/prosodyctl
index 35c06220..e769ed5d 100755
--- a/prosodyctl
+++ b/prosodyctl
@@ -669,7 +669,7 @@ local command_runner = async.runner(function ()
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