summaryrefslogtreecommitdiff
path: root/src/rebar_prv_do.erl
diff options
context:
space:
mode:
Diffstat (limited to 'src/rebar_prv_do.erl')
-rw-r--r--src/rebar_prv_do.erl8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/rebar_prv_do.erl b/src/rebar_prv_do.erl
index e66fdbd..10888eb 100644
--- a/src/rebar_prv_do.erl
+++ b/src/rebar_prv_do.erl
@@ -7,7 +7,7 @@
-export([init/1,
do/1,
- format_error/2]).
+ format_error/1]).
-include("rebar.hrl").
@@ -41,9 +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}.
+-spec format_error(any()) -> iolist().
+format_error(Reason) ->
+ io_lib:format("~p", [Reason]).
args_to_tasks(Args) ->
[string:strip(T) || T <- string:tokens(string:join(Args, " "), ",")].