diff options
author | Evgeny Khramtsov <xramtsov@gmail.com> | 2014-06-11 18:31:41 +0400 |
---|---|---|
committer | Evgeny Khramtsov <xramtsov@gmail.com> | 2014-06-11 18:31:41 +0400 |
commit | 4b82a38cf76eaa462a24c6eda7801f9c7f114adf (patch) | |
tree | 710744b00c2880a2fe1196b71612317bf1c451bf | |
parent | Merge pull request #231 from hamano/case_clause_error_at_node_hometree_odbc (diff) | |
parent | Mention configuration file path in error messages (diff) |
Merge pull request #237 from weiss/log-config-path
Mention configuration file path in error messages
-rw-r--r-- | src/ejabberd_config.erl | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/ejabberd_config.erl b/src/ejabberd_config.erl index c0b78d9ba..612cd84ce 100644 --- a/src/ejabberd_config.erl +++ b/src/ejabberd_config.erl @@ -186,7 +186,9 @@ consult(File) -> {ok, [Document|_]} -> {ok, Document}; {error, Err} -> - {error, p1_yaml:format_error(Err)} + Msg1 = "Cannot load " ++ File ++ ": ", + Msg2 = p1_yaml:format_error(Err), + {error, Msg1 ++ Msg2} end; _ -> case file:consult(File) of |