Enhance Readability of KQL validation check failures (#4329)

This commit is contained in:
shashank-elastic
2025-01-06 22:18:05 +05:30
committed by GitHub
parent 52db5e0361
commit 318ab3ffa0
2 changed files with 4 additions and 2 deletions
+3 -1
View File
@@ -158,7 +158,9 @@ class KQLValidator(QueryValidator):
# auto add the field and re-validate
self.auto_add_field(validation_checks["stack"], data.index_or_dataview[0])
else:
raise ValueError(f"Error in both stack and integrations checks: {validation_checks}")
click.echo(f"Stack Error Trace: {validation_checks["stack"]}")
click.echo(f"Integrations Error Trace: {validation_checks["integrations"]}")
raise ValueError("Error in both stack and integrations checks")
else:
break
+1 -1
View File
@@ -1,6 +1,6 @@
[project]
name = "detection_rules"
version = "0.3.8"
version = "0.3.9"
description = "Detection Rules is the home for rules used by Elastic Security. This repository is used for the development, maintenance, testing, validation, and release of rules for Elastic Securitys Detection Engine."
readme = "README.md"
requires-python = ">=3.12"