Skip to content

Commit

Permalink
Merge pull request #300 from r0ot:patch-2
Browse files Browse the repository at this point in the history
Improve SigmaTransformationError
  • Loading branch information
thomaspatzke authored Nov 10, 2024
2 parents f5cb2bf + e40f8bf commit 6480171
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sigma/processing/transformations.py
Original file line number Diff line number Diff line change
Expand Up @@ -1122,7 +1122,7 @@ class RuleFailureTransformation(Transformation):
def apply(
self, pipeline: "sigma.processing.pipeline.ProcessingPipeline", rule: SigmaRule
) -> None:
raise SigmaTransformationError(self.message)
raise SigmaTransformationError(self.message, source=rule.source)


@dataclass
Expand All @@ -1136,7 +1136,7 @@ class DetectionItemFailureTransformation(DetectionItemTransformation):
message: str

def apply_detection_item(self, detection_item: SigmaDetectionItem) -> None:
raise SigmaTransformationError(self.message)
raise SigmaTransformationError(self.message, source=detection_item.source)


@dataclass
Expand Down

0 comments on commit 6480171

Please sign in to comment.