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

fix(webdriverjs): Reject with actual Errors (not strings) #423

Merged
merged 3 commits into from
Jan 25, 2022

Conversation

stephenmathieson
Copy link
Member

This patch updates the error handling in @axe-core/webdriverjs, having it return an actual Error rather than a string. Rejecting/returning a string (eg error.message) leads to tons of bugs/confusion. Providing the Error to the caller enables a much richer debugging experience.

Closes #422
Ref #421
Ref #387
Ref #308 (somewhat)
Ref #207

@CLAassistant
Copy link

CLAassistant commented Jan 10, 2022

CLA assistant check
All committers have signed the CLA.

@stephenmathieson stephenmathieson requested a review from a team January 10, 2022 22:37
* develop:
  docs(webdriverjs): add example using axe-core webdriverjs (#420)
  fix(cli): provide a more robust error message if analysis fails (#421)
Copy link
Contributor

@Zidious Zidious left a comment

Choose a reason for hiding this comment

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

LGTM

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

Successfully merging this pull request may close these issues.

fix typing in WebdriverJS to improve error handling in CLI
3 participants