equal
deleted
inserted
replaced
93 local ok, level, err = config.load(filename); |
93 local ok, level, err = config.load(filename); |
94 if not ok then |
94 if not ok then |
95 print("\n"); |
95 print("\n"); |
96 print("**************************"); |
96 print("**************************"); |
97 if level == "parser" then |
97 if level == "parser" then |
98 print("A problem occured while reading the config file "..(CFG_CONFIGDIR or ".").."/prosody.cfg.lua"..":"); |
98 print("A problem occurred while reading the config file "..(CFG_CONFIGDIR or ".").."/prosody.cfg.lua"..":"); |
99 print(""); |
99 print(""); |
100 local err_line, err_message = tostring(err):match("%[string .-%]:(%d*): (.*)"); |
100 local err_line, err_message = tostring(err):match("%[string .-%]:(%d*): (.*)"); |
101 if err:match("chunk has too many syntax levels$") then |
101 if err:match("chunk has too many syntax levels$") then |
102 print("An Include statement in a config file is including an already-included"); |
102 print("An Include statement in a config file is including an already-included"); |
103 print("file and causing an infinite loop. An Include statement in a config file is..."); |
103 print("file and causing an infinite loop. An Include statement in a config file is..."); |