Comparison

util/prosodyctl/check.lua @ 13316:a27a329e93ca

util.prosodyctl.check: Try to clarify check for misplaced k=v in modules_enabled (thanks aab and Menel)
author Kim Alvefur <zash@zash.se>
date Sat, 11 Nov 2023 21:33:53 +0100
parent 13302:30b7cd40ee14
child 13324:6f371066d6e0
comparison
equal deleted inserted replaced
13315:3d5a5e407903 13316:a27a329e93ca
504 ok = false 504 ok = false
505 return 505 return
506 end 506 end
507 for k, v in pairs(modules) do 507 for k, v in pairs(modules) do
508 if type(k) ~= "number" or type(v) ~= "string" then 508 if type(k) ~= "number" or type(v) ~= "string" then
509 print(" The " .. name .. " in the " .. host .. " section should not be a map of " .. type(k) .. " to " .. type(v) 509 print(" The " .. name .. " in the " .. host .. " section should be a list of strings, e.g.");
510 .. " but a list of strings, e.g.");
511 print(" " .. name .. " = { \"name_of_module\", \"another_plugin\", }") 510 print(" " .. name .. " = { \"name_of_module\", \"another_plugin\", }")
511 print(" It should not contain key = value pairs, try putting them outside the {} brackets.");
512 ok = false 512 ok = false
513 break 513 break
514 end 514 end
515 end 515 end
516 end 516 end