util/prosodyctl/check.lua
changeset 13320 a27a329e93ca
parent 13306 30b7cd40ee14
child 13328 6f371066d6e0
equal deleted inserted replaced
13319:3d5a5e407903 13320: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