From 99d2ebb7315a6a05953722206795c402f3802472 Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Sat, 11 Nov 2023 21:33:53 +0100 Subject: util.prosodyctl.check: Try to clarify check for misplaced k=v in modules_enabled (thanks aab and Menel) --- util/prosodyctl/check.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'util') 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 -- cgit v1.2.3