From 1415fa4b1c7af7a4e492a963ddac42f2805c10d4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micka=C3=ABl=20R=C3=A9mond?= Date: Thu, 22 Nov 2007 13:46:54 +0000 Subject: [PATCH] * src/ejabberd_config.erl: Improved error message when ejabberd config file is not found. SVN Revision: 974 --- ChangeLog | 5 +++++ src/ejabberd_config.erl | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 76abd9abe..998285cab 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2007-11-22 Mickael Remond + + * src/ejabberd_config.erl: Improved error message when ejabberd + config file is not found. + 2007-11-16 Christophe Romain * src/ejabberd_auth_internal.erl: Better count management and diff --git a/src/ejabberd_config.erl b/src/ejabberd_config.erl index be2287a8d..f029dca38 100644 --- a/src/ejabberd_config.erl +++ b/src/ejabberd_config.erl @@ -46,7 +46,7 @@ load_file(File) -> set_opts(Res); {error, Reason} -> ?ERROR_MSG("Can't load config file ~p: ~p", [File, Reason]), - exit(file:format_error(Reason)) + exit(File ++ ": " ++ file:format_error(Reason)) end. search_hosts(Term, State) ->