From 7bd8cbd8d9127327f3193413458096974972a303 Mon Sep 17 00:00:00 2001 From: Tuncer Ayaz Date: Sat, 31 Mar 2012 19:20:05 +0200 Subject: [PATCH] Make error message more descriptive --- src/rebar_core.erl | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/rebar_core.erl b/src/rebar_core.erl index 55e0c4c..9a57437 100644 --- a/src/rebar_core.erl +++ b/src/rebar_core.erl @@ -235,7 +235,9 @@ remember_cwd_subdir(Cwd, Subdirs) -> ?DEBUG("Associate sub_dir ~s with ~s~n", [Dir, Cwd]), dict:store(Dir, Cwd, Dict); {ok, Existing} -> - ?ABORT("sub_dir ~s already associated with ~s~n", + ?ABORT("Internal consistency assertion failed.~n" + "sub_dir ~s already associated with ~s.~n" + "Duplicate sub_dirs or deps entries?", [Dir, Existing]), Dict end