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 | b71438e89de79f985d8c904fef757083aae14758 (patch) | |
tree | 7c4e1e88b94585aed691b08127adf4ef3a4ad4d3 /prosodyctl | |
parent | 56ab48e717fe13ab418032306696fc1b2846b2a8 (diff) | |
download | prosody-b71438e89de79f985d8c904fef757083aae14758.tar.gz prosody-b71438e89de79f985d8c904fef757083aae14758.zip |
prosody, prosodyctl: Print the actual config file name used when a problem loading it was encountered (see #990)
Diffstat (limited to 'prosodyctl')
-rwxr-xr-x | prosodyctl | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -93,13 +93,13 @@ do print("\n"); print("**************************"); if level == "parser" then - print("A problem occured while reading the config file "..(CFG_CONFIGDIR or ".").."/prosody.cfg.lua"); + print("A problem occured while reading the config file "..filename); local err_line, err_message = tostring(err):match("%[string .-%]:(%d*): (.*)"); print("Error"..(err_line and (" on line "..err_line) or "")..": "..(err_message or tostring(err))); 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 |