Permalink
Browse files

Adds support for handling function_clause EXITs in R15

(R15 adds location information)
  • Loading branch information...
1 parent 33dfa50 commit f419c616d47f19c00cac9cd315721c6bdd8bf1d7 @yrashk yrashk committed Feb 29, 2012
Showing with 1 addition and 0 deletions.
  1. +1 −0 src/seresye_agenda.erl
View
1 src/seresye_agenda.erl
@@ -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]}});

0 comments on commit f419c61

Please sign in to comment.