diff options
Diffstat (limited to 'src/rebar_prv_do.erl')
-rw-r--r-- | src/rebar_prv_do.erl | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/rebar_prv_do.erl b/src/rebar_prv_do.erl index 5f6e751..e66fdbd 100644 --- a/src/rebar_prv_do.erl +++ b/src/rebar_prv_do.erl @@ -6,7 +6,8 @@ -behaviour(provider). -export([init/1, - do/1]). + do/1, + format_error/2]). -include("rebar.hrl"). @@ -40,5 +41,9 @@ do(State) -> rebar_core:process_command(StateAcc2, Task) end, {ok, State}, Tasks). +-spec format_error(any(), rebar_state:t()) -> {iolist(), rebar_state:t()}. +format_error(Reason, State) -> + {io_lib:format("~p", [Reason]), State}. + args_to_tasks(Args) -> [string:strip(T) || T <- string:tokens(string:join(Args, " "), ",")]. |