From d1c13beb2aea2751b715dd8de90ac5266070973d Mon Sep 17 00:00:00 2001 From: Thomas Patzke Date: Sun, 1 Sep 2024 01:18:23 +0200 Subject: [PATCH] Verbose YAML errors in validation config --- sigma/validation.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sigma/validation.py b/sigma/validation.py index aebb8100..03625910 100644 --- a/sigma/validation.py +++ b/sigma/validation.py @@ -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]: """