summaryrefslogtreecommitdiff
path: root/src/rebar_prv_new.erl
diff options
context:
space:
mode:
authorTristan Sloughter <t@crashfast.com>2014-11-09 18:29:38 -0600
committerTristan Sloughter <t@crashfast.com>2014-11-09 18:29:38 -0600
commit79b1f2324006307e581ce19b24faf3b2edc5f8a9 (patch)
treeacc4fcd12899f7eecffb4493df7b12830de20cbf /src/rebar_prv_new.erl
parent8d02c0767ed8417d71e2789e65039d30c5375bd0 (diff)
move back to using format_error/1
Diffstat (limited to 'src/rebar_prv_new.erl')
-rw-r--r--src/rebar_prv_new.erl8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/rebar_prv_new.erl b/src/rebar_prv_new.erl
index 2555b4d..698b14e 100644
--- a/src/rebar_prv_new.erl
+++ b/src/rebar_prv_new.erl
@@ -4,7 +4,7 @@
-export([init/1,
do/1,
- format_error/2]).
+ format_error/1]).
-include("rebar.hrl").
@@ -42,9 +42,9 @@ do(State) ->
{ok, State}
end.
--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]).
%% ===================================================================
%% Internal functions