NOISSUE - Fix RE nil error

Signed-off-by: Dusan Borovcanin <borovcanindusan1@gmail.com>
This commit is contained in:
Dusan Borovcanin
2025-06-06 12:07:37 +02:00
parent e29691c8e3
commit 33289561c0
+1 -1
View File
@@ -116,7 +116,7 @@ func (re *re) process(ctx context.Context, r Rule, msg *messaging.Message) RunIn
for _, o := range r.Logic.Outputs {
// If value is false, don't run the follow-up.
if v, ok := res.(bool); ok && !v {
return RunInfo{Level: slog.LevelInfo, Message: err.Error(), Details: details}
return RunInfo{Level: slog.LevelInfo, Message: "logic returned false", Details: details}
}
if e := re.handleOutput(ctx, o, r, msg, res); e != nil {
err = errors.Wrap(e, err)