summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authormopp <hello@mopp.jp>2018-12-30 00:48:58 +0900
committermopp <hello@mopp.jp>2018-12-30 00:48:58 +0900
commit3071319c43c6a8e06f1536bf573584cc402c388e (patch)
tree8f745b81eaef1c3666aae789fbe576b3b313d0a4 /src
parent088487bab570ee59e6e262d703735fea681c341c (diff)
Use ?PRV_ERROR instead of throwing error
Diffstat (limited to 'src')
-rw-r--r--src/rebar_prv_eunit.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rebar_prv_eunit.erl b/src/rebar_prv_eunit.erl
index d8136a2..fe0caa2 100644
--- a/src/rebar_prv_eunit.erl
+++ b/src/rebar_prv_eunit.erl
@@ -158,7 +158,7 @@ normalize(generator, Value) ->
lists:map(fun(F) -> {generator, Module, list_to_atom(F)} end,
string:tokens(Functions, [$;]));
_ ->
- throw(lists:concat(["Generator `", Value, "' is invalid format."]))
+ ?PRV_ERROR({generator, {"Generator `~p` is invalid format", {Value}}})
end;
normalize(Key, Value) when Key == dir; Key == file -> {Key, Value};
normalize(Key, Value) -> {Key, list_to_atom(Value)}.