summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/rabbit_config.erl8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/rabbit_config.erl b/src/rabbit_config.erl
index cef75f1179..79f4a754bf 100644
--- a/src/rabbit_config.erl
+++ b/src/rabbit_config.erl
@@ -257,9 +257,13 @@ assert_config(Filename, Env) ->
case filelib:is_regular(Filename) of
true ->
case file:consult(Filename) of
- {ok, []} -> {error, "ERROR: Config file ~s should not be empty: ~s"};
+ {ok, []} -> {error,
+ {"ERROR: Config file ~s should not be empty: ~s",
+ [Env, Filename]}};
{ok, [_]} -> ok;
- {ok, [_|_]} -> {error, "ERROR: Config file ~s must contain ONE list ended by <dot>: ~s"};
+ {ok, [_|_]} -> {error,
+ {"ERROR: Config file ~s must contain ONE list ended by <dot>: ~s",
+ [Env, Filename]}};
{error, {1, erl_parse, Err}} ->
{error, {"ERROR: Unable to parse erlang terms from ~s file: ~s~n"
"ERROR: Reason: ~p~n"