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

Propagate error of unable to find midpoint upward instead of panicking #410

Merged
merged 2 commits into from Sep 8, 2023
Merged

Conversation

CrendKing
Copy link
Contributor

It seems sometimes after finding an element, if immediately calling something like .click(), we get a panic at unwrapping a None. The related code seems to assume this should never happen. Maybe it's a better idea to propagate the error upward.

@CrendKing CrendKing closed this Aug 10, 2023
@CrendKing CrendKing reopened this Aug 10, 2023
Copy link
Collaborator

@mdrokz mdrokz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for your contribution!

@mdrokz mdrokz added the enhancement New feature or request label Sep 8, 2023
@mdrokz mdrokz merged commit e8f7b6b into rust-headless-chrome:main Sep 8, 2023
2 checks passed
@CrendKing CrendKing deleted the midpoint branch September 8, 2023 05:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants