aboutsummaryrefslogtreecommitdiffstats
path: root/src/rlx_cmd_args.erl
diff options
context:
space:
mode:
authorTristan Sloughter <[email protected]>2014-10-01 08:03:25 -0500
committerTristan Sloughter <[email protected]>2014-10-11 11:13:05 -0500
commite4849bd132b28ba1e1420686aadf8b2136c44fbd (patch)
tree6d37fc2e021e8a860056dbc2cb59361de132bc54 /src/rlx_cmd_args.erl
parent2604b7f0e9e11ee2fae17816499aba180b9b9683 (diff)
downloadrelx-e4849bd132b28ba1e1420686aadf8b2136c44fbd.tar.gz
relx-e4849bd132b28ba1e1420686aadf8b2136c44fbd.tar.bz2
relx-e4849bd132b28ba1e1420686aadf8b2136c44fbd.zip
support config passed in as proplist instead of filename
Diffstat (limited to 'src/rlx_cmd_args.erl')
-rw-r--r--src/rlx_cmd_args.erl4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/rlx_cmd_args.erl b/src/rlx_cmd_args.erl
index e117d8e..84aeca5 100644
--- a/src/rlx_cmd_args.erl
+++ b/src/rlx_cmd_args.erl
@@ -69,7 +69,7 @@ format_error({invalid_option_arg, Arg}) ->
io_lib:format("Invalid code path argument -n ~p~n", [Path])
end;
format_error({invalid_config_file, Config}) ->
- io_lib:format("Invalid configuration file specified: ~s", [Config]);
+ io_lib:format("Invalid configuration file specified: ~p", [Config]);
format_error({invalid_caller, Caller}) ->
io_lib:format("Invalid caller specified: ~s", [Caller]);
format_error({failed_to_parse, Spec}) ->
@@ -128,7 +128,7 @@ validate_config(Config) ->
true ->
{ok, filename:absname(Config)};
false ->
- ?RLX_ERROR({invalid_config_file, Config})
+ {ok, Config}
end.
run_creates(Opts) ->