refactor icon indicating copy to clipboard operation
refactor copied to clipboard

Hint for MaybeOverlap error

Open MementoRC opened this issue 2 years ago • 1 comments

Would it be helpful to add an hint as to the action that generated an overlap error with:

            try:
                updated_input = path.execute(previous_tree)
            except AccessFailure:
                raise MaybeOverlappingActions(
                    "When using chained actions, individual actions should not"
                    " overlap with each other."
                    f"   Action attempted: {action}"
                ) from None

MementoRC avatar Jan 04 '23 18:01 MementoRC

Maybe something like this:

                    f"\n    Previous action: {self.action[i-1]} for node: {ast.unparse(action.node)}"
                    f"\n   Action attempted: {action} for node: {ast.unparse(action.node)}"

MementoRC avatar Jan 16 '23 23:01 MementoRC