Skip to content

Commit

Permalink
transformations: (apply-individual-rewrite) improve error message
Browse files Browse the repository at this point in the history
  • Loading branch information
alexarice committed Dec 9, 2024
1 parent 4b51d2b commit b9e6f47
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion xdsl/transforms/individual_rewrite.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,5 +125,5 @@ def apply(self, ctx: MLContext, op: ModuleOp) -> None:
pattern.match_and_rewrite(matched_operation, rewriter)
if not rewriter.has_done_action:
raise ValueError(
f"Invalid rewrite ({pattern}) for operation ({matched_operation}) at location {self.matched_operation_index}."
f"Invalid rewrite ({self.pattern_name}) for operation ({matched_operation}) at location {self.matched_operation_index}."
)

0 comments on commit b9e6f47

Please sign in to comment.