From 387d7eda853d2a788c1153b59358d0694ce227e0 Mon Sep 17 00:00:00 2001 From: Josh Koberstein Date: Tue, 5 Nov 2024 15:35:17 -0800 Subject: [PATCH] Updating RuleEntry.Evaluate error logging to include value returned by recover. --- ast/RuleEntry.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ast/RuleEntry.go b/ast/RuleEntry.go index 36d7f26..6dacc34 100755 --- a/ast/RuleEntry.go +++ b/ast/RuleEntry.go @@ -171,7 +171,7 @@ func (e *RuleEntry) Evaluate(ctx context.Context, dataContext IDataContext, memo } defer func() { if r := recover(); r != nil { - err = fmt.Errorf("error while evaluating rule %s, panic recovered", e.RuleName) + err = fmt.Errorf("error while evaluating rule %s ! recovered : %v", e.RuleName, r) can = false } }()