Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hint for MaybeOverlap error #78

Open
MementoRC opened this issue Jan 4, 2023 · 1 comment
Open

Hint for MaybeOverlap error #78

MementoRC opened this issue Jan 4, 2023 · 1 comment

Comments

@MementoRC
Copy link
Contributor

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
Copy link
Contributor Author

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)}"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant