aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2023-11-11 21:33:53 +0100
committerKim Alvefur <zash@zash.se>2023-11-11 21:33:53 +0100
commit99d2ebb7315a6a05953722206795c402f3802472 (patch)
tree3c46f0ddee681b9fc666e30016df1f9151f57ee8
parent298145db5fc625eacd6b4e94b3c78a0853f02056 (diff)
downloadprosody-99d2ebb7315a6a05953722206795c402f3802472.tar.gz
prosody-99d2ebb7315a6a05953722206795c402f3802472.zip
util.prosodyctl.check: Try to clarify check for misplaced k=v in modules_enabled (thanks aab and Menel)
-rw-r--r--util/prosodyctl/check.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/util/prosodyctl/check.lua b/util/prosodyctl/check.lua
index 343b062f..fa65d1b6 100644
--- a/util/prosodyctl/check.lua
+++ b/util/prosodyctl/check.lua
@@ -506,9 +506,9 @@ local function check(arg)
end
for k, v in pairs(modules) do
if type(k) ~= "number" or type(v) ~= "string" then
- print(" The " .. name .. " in the " .. host .. " section should not be a map of " .. type(k) .. " to " .. type(v)
- .. " but a list of strings, e.g.");
+ print(" The " .. name .. " in the " .. host .. " section should be a list of strings, e.g.");
print(" " .. name .. " = { \"name_of_module\", \"another_plugin\", }")
+ print(" It should not contain key = value pairs, try putting them outside the {} brackets.");
ok = false
break
end