mirror of
https://github.com/processone/ejabberd.git
synced 2024-12-26 17:38:45 +01:00
Log human readable description when configuration file is not found
This commit is contained in:
parent
920f2678ac
commit
878c762cdf
@ -317,8 +317,6 @@ consult(File) ->
|
|||||||
case file:consult(File) of
|
case file:consult(File) of
|
||||||
{ok, Terms} ->
|
{ok, Terms} ->
|
||||||
{ok, Terms};
|
{ok, Terms};
|
||||||
{error, enoent} ->
|
|
||||||
{error, enoent};
|
|
||||||
{error, {LineNumber, erl_parse, _ParseMessage} = Reason} ->
|
{error, {LineNumber, erl_parse, _ParseMessage} = Reason} ->
|
||||||
{error, describe_config_problem(File, Reason, LineNumber)};
|
{error, describe_config_problem(File, Reason, LineNumber)};
|
||||||
{error, Reason} ->
|
{error, Reason} ->
|
||||||
|
Loading…
Reference in New Issue
Block a user