Selaa lähdekoodia

fix format_error cycle

pull/3/head
Tristan Sloughter 10 vuotta sitten
vanhempi
commit
bd1501f079
1 muutettua tiedostoa jossa 3 lisäystä ja 3 poistoa
  1. +3
    -3
      src/rebar_topo.erl

+ 3
- 3
src/rebar_topo.erl Näytä tiedosto

@ -76,10 +76,10 @@ format_error({cycle, Pairs}) ->
"before we can continue:\n", "before we can continue:\n",
case Pairs of case Pairs of
[{P1, P2}] -> [{P1, P2}] ->
[rebar_utils:indent(2), P2, "->", P1];
[rebar_utils:indent(2), erlang:atom_to_list(P2), "->", erlang:atom_to_list(P1)];
[{P1, P2} | Rest] -> [{P1, P2} | Rest] ->
[rebar_utils:indent(2), P2, "->", P1,
[["-> ", PP2, " -> ", PP1] || {PP1, PP2} <- Rest]];
[rebar_utils:indent(2), erlang:atom_to_list(P2), "->", erlang:atom_to_list(P1),
[["-> ", erlang:atom_to_list(PP2), " -> ", erlang:atom_to_list(PP1)] || {PP1, PP2} <- Rest]];
[] -> [] ->
[] []
end]. end].

Ladataan…
Peruuta
Tallenna