Ver a proveniência

Use ?PRV_ERROR instead of throwing error

pull/1984/head
mopp há 6 anos
ascendente
cometimento
3071319c43
1 ficheiros alterados com 1 adições e 1 eliminações
  1. +1
    -1
      src/rebar_prv_eunit.erl

+ 1
- 1
src/rebar_prv_eunit.erl Ver ficheiro

@ -158,7 +158,7 @@ normalize(generator, Value) ->
lists:map(fun(F) -> {generator, Module, list_to_atom(F)} end, lists:map(fun(F) -> {generator, Module, list_to_atom(F)} end,
string:tokens(Functions, [$;])); string:tokens(Functions, [$;]));
_ -> _ ->
throw(lists:concat(["Generator `", Value, "' is invalid format."]))
?PRV_ERROR({generator, {"Generator `~p` is invalid format", {Value}}})
end; end;
normalize(Key, Value) when Key == dir; Key == file -> {Key, Value}; normalize(Key, Value) when Key == dir; Key == file -> {Key, Value};
normalize(Key, Value) -> {Key, list_to_atom(Value)}. normalize(Key, Value) -> {Key, list_to_atom(Value)}.

Carregando…
Cancelar
Guardar