refactor
refactor copied to clipboard
Hint for MaybeOverlap error
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
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)}"