mirror of
https://github.com/processone/ejabberd.git
synced 2024-12-30 17:43:57 +01:00
Improve log message when showing lines of config file.
SVN Revision: 2850
This commit is contained in:
parent
d9a1eecdca
commit
15a27c0566
@ -184,7 +184,8 @@ describe_config_problem(Filename, Reason, LineNumber) ->
|
||||
++ file:format_error(Reason)),
|
||||
ExitText = Text1 ++ Text2,
|
||||
Lines = get_config_lines(Filename, LineNumber, 10, 3),
|
||||
?ERROR_MSG("Extract from config file: ~n~s", [Lines]),
|
||||
?ERROR_MSG("The following lines from your configuration file might be"
|
||||
" relevant to the error: ~n~s", [Lines]),
|
||||
ExitText.
|
||||
|
||||
get_config_lines(Filename, TargetNumber, PreContext, PostContext) ->
|
||||
|
Loading…
Reference in New Issue
Block a user