Skip to content

Commit 71223c4

Browse files
Modularity of code
1 parent f5a6e11 commit 71223c4

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

detection_rules/rule_validators.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -374,7 +374,9 @@ def validate(self, data: "QueryRuleData", meta: RuleMeta, max_attempts: int = 10
374374
else:
375375
click.echo(f"Stack Error Trace: {validation_checks["stack"]}")
376376
click.echo(f"Integrations Error Trace: {validation_checks["integrations"]}")
377-
raise ValueError("Error in both stack and integrations checks")
377+
raise ValueError(f"Error in both stack and integrations checks: \n" \
378+
f"Stack Error : {validation_checks["stack"].error_msg} \n" \
379+
f"Integrations Error : {validation_checks["integrations"].error_msg}")
378380

379381
else:
380382
break

0 commit comments

Comments
 (0)