Skip to content

Commit f48803a

Browse files
committed
reverse catch clauses
1 parent 59ab121 commit f48803a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎src/fn_to_erl.erl‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ ast_to_ast(?E(Line, 'try', {Body, Catch, After}), State) ->
210210
noafter -> {[], State2};
211211
AfterBody -> ast_to_ast(AfterBody, State2)
212212
end,
213-
R = {'try', Line, EBody, [], ECatch, EAfter},
213+
R = {'try', Line, EBody, [], lists:reverse(ECatch), EAfter},
214214
{R, State3};
215215

216216
ast_to_ast(?E(Line, 'receive', {?E(_CLine, 'case', Clauses), noafter}), State) ->

0 commit comments

Comments
 (0)