Skip to content

Commit

Permalink
Adds support for handling function_clause EXITs in R15
Browse files Browse the repository at this point in the history
(R15 adds location information)
  • Loading branch information
yrashk committed Feb 29, 2012
1 parent 33dfa50 commit f419c61
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/seresye_agenda.erl
Expand Up @@ -300,6 +300,7 @@ exec(EngineState0, R) ->
EngineState2 =
case catch execute_rule(EngineState0, R) of
{'EXIT', {function_clause, [{Mod, Fun, _} | _]}} -> EngineState0;
{'EXIT', {function_clause, [{Mod, Fun, _, _Location} | _]}} -> EngineState0;
{'EXIT', Reason} ->
erlang:throw({seresye, {rule_execution,
[R, Reason]}});
Expand Down

0 comments on commit f419c61

Please sign in to comment.