aboutsummaryrefslogtreecommitdiffstats
path: root/src/relx.erl
diff options
context:
space:
mode:
authorJordan Wilberding <[email protected]>2015-11-21 14:01:19 -0800
committerJordan Wilberding <[email protected]>2015-11-21 14:01:19 -0800
commit1d42e7ab9ab58386f34a01d101ec4b5e758b7bd6 (patch)
tree59e283f1a01c183f90f621fd7908faef9638d647 /src/relx.erl
parentc81e404b40c3f2427a60a3f4c9192081839e3398 (diff)
parent1cde722a7ce0760c723680414cc4af653ab8b260 (diff)
downloadrelx-1d42e7ab9ab58386f34a01d101ec4b5e758b7bd6.tar.gz
relx-1d42e7ab9ab58386f34a01d101ec4b5e758b7bd6.tar.bz2
relx-1d42e7ab9ab58386f34a01d101ec4b5e758b7bd6.zip
Merge pull request #416 from tsloughter/fix_error_msgs
Fix error msgs and add sys.config error message
Diffstat (limited to 'src/relx.erl')
-rw-r--r--src/relx.erl8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/relx.erl b/src/relx.erl
index d2dd797..8027fd4 100644
--- a/src/relx.erl
+++ b/src/relx.erl
@@ -70,7 +70,7 @@ main(ApiOptions, Args) ->
end,
case Result of
{error, _} ->
- report_error(rlx_state:caller(rlx_state:new([], undefined),
+ report_error(rlx_state:caller(rlx_state:new([], [{caller, command_line}], undefined),
command_line),
Result);
_ ->
@@ -327,13 +327,13 @@ usage() ->
report_error(State, Error) ->
case Error of
{error, {relx, {opt_parse, _}}} ->
- io:format(standard_error, format_error(Error), []),
+ ec_cmd_log:error(rlx_state:log(State), format_error(Error), []),
usage();
{error, {rlx_cmd_args, _}} ->
- io:format(standard_error, format_error(Error), []),
+ ec_cmd_log:error(rlx_state:log(State), format_error(Error), []),
usage();
_ ->
- io:format(standard_error, format_error(Error), [])
+ ec_cmd_log:error(rlx_state:log(State), format_error(Error), [])
end,
case rlx_state:caller(State) of
command_line ->