Merge pull request #9970 from emqx/fix-raise-macro-in-rule-engine
fix: the _EXP_ON_FAIL_ was not called on throw
This commit is contained in:
commit
2f95b8451b
|
@ -89,6 +89,7 @@
|
||||||
try (_EXP_)
|
try (_EXP_)
|
||||||
catch
|
catch
|
||||||
throw : Reason ->
|
throw : Reason ->
|
||||||
|
_EXP_ON_FAIL_,
|
||||||
throw({_ERROR_CONTEXT_, Reason});
|
throw({_ERROR_CONTEXT_, Reason});
|
||||||
_EXCLASS_:_EXCPTION_:_ST_ ->
|
_EXCLASS_:_EXCPTION_:_ST_ ->
|
||||||
_EXP_ON_FAIL_,
|
_EXP_ON_FAIL_,
|
||||||
|
|
Loading…
Reference in New Issue