Skip to content

Commit

Permalink
Verbose YAML errors in validation config
Browse files Browse the repository at this point in the history
  • Loading branch information
thomaspatzke committed Aug 31, 2024
1 parent c63960a commit d1c13be
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sigma/validation.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,8 +113,8 @@ def from_yaml(
return cls.from_dict(yaml.safe_load(validator_config), validators)
except yaml.parser.ParserError as e:
raise SigmaValidatorConfigurationParsingError(
f"Error in parsing of a Sigma validation configuration file."
)
f"Error in parsing of a Sigma validation configuration file: {str(e)}"
) from e

def validate_rule(self, rule: SigmaRule) -> List[SigmaValidationIssue]:
"""
Expand Down

0 comments on commit d1c13be

Please sign in to comment.