diff options
author | Kim Alvefur <zash@zash.se> | 2017-09-27 15:33:29 +0200 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2017-09-27 15:33:29 +0200 |
commit | c2484808b3f3e9c14e44ff3554d31e5ef22e50b7 (patch) | |
tree | 7c4e1e88b94585aed691b08127adf4ef3a4ad4d3 /prosody | |
parent | 6b0662433d0978d5862f6e7a6fab1532c28be15e (diff) | |
download | prosody-c2484808b3f3e9c14e44ff3554d31e5ef22e50b7.tar.gz prosody-c2484808b3f3e9c14e44ff3554d31e5ef22e50b7.zip |
prosody, prosodyctl: Print the actual config file name used when a problem loading it was encountered (see #990)
Diffstat (limited to 'prosody')
-rwxr-xr-x | prosody | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -95,7 +95,7 @@ function read_config() print("\n"); print("**************************"); if level == "parser" then - print("A problem occurred while reading the config file "..(CFG_CONFIGDIR or ".").."/prosody.cfg.lua"..":"); + print("A problem occured while reading the config file "..filename); print(""); local err_line, err_message = tostring(err):match("%[string .-%]:(%d*): (.*)"); if err:match("chunk has too many syntax levels$") then @@ -107,7 +107,7 @@ function read_config() print(""); elseif level == "file" then print("Prosody was unable to find the configuration file."); - print("We looked for: "..(CFG_CONFIGDIR or ".").."/prosody.cfg.lua"); + print("We looked for: "..filename); print("A sample config file is included in the Prosody download called prosody.cfg.lua.dist"); print("Copy or rename it to prosody.cfg.lua and edit as necessary."); end |