Permalink
Browse files

Use reia:throw when reporting illegal ivar matches

  • Loading branch information...
1 parent b77abc1 commit 5127d534ff03820c5d65906233cf421997a73e8b Tony Arcieri committed Mar 5, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/compiler/reia_ivars.erl
@@ -90,7 +90,7 @@ immutable_method_ivars(Expr) ->
reia_syntax:map_subtrees(fun immutable_method_ivars/1, Expr).
immutable_match_context(#ivar{line=Line}) ->
- throw({error, {Line, "illegal usage of an instance variable in match context"}});
+ reia:throw('SyntaxError', Line, "illegal instance variable match");
immutable_match_context(Expr) ->
reia_syntax:map_subtrees(fun immutable_match_context/1, Expr).

0 comments on commit 5127d53

Please sign in to comment.