skip succeed rules when building the blocked return message
@@ -51,8 +51,10 @@ func GetBlockedMessages(engineResponses []*response.EngineResponse) string {
}
}
}
+ if len(ruleToReason) != 0 {
failures[er.PolicyResponse.Policy.Name] = ruleToReason
}
+ }
if len(failures) == 0 {
return ""
}
