summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorserge <saleyn@gmail.com>2012-10-17 22:29:52 -0400
committerserge <saleyn@gmail.com>2012-10-20 13:32:30 +0400
commit2d5bd56605a2555939cec1eb25092395609ef2ba (patch)
tree750a27f000372fcfee6856de8a8b27e695069643
parent32e67ef55ef6c4655d31568054d0ea3a8c38b55e (diff)
Fix return value of rebar:overlay/2
When 'rebar overlay' is run rebar_core got a wrong result {Config, ok} from rebar_reltool instead of {ok, Config}.
-rw-r--r--src/rebar_reltool.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rebar_reltool.erl b/src/rebar_reltool.erl
index 6524e68..94ba2af 100644
--- a/src/rebar_reltool.erl
+++ b/src/rebar_reltool.erl
@@ -67,7 +67,7 @@ generate(Config0, ReltoolFile) ->
overlay(Config, ReltoolFile) ->
%% Load the reltool configuration from the file
{Config1, ReltoolConfig} = rebar_rel_utils:load_config(Config, ReltoolFile),
- {Config1, process_overlay(Config, ReltoolConfig)}.
+ {process_overlay(Config, ReltoolConfig), Config1}.
clean(Config, ReltoolFile) ->
{Config1, ReltoolConfig} = rebar_rel_utils:load_config(Config, ReltoolFile),