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(pageOrError): throw in launchPersistentContext if context page errors #5868

Merged
merged 1 commit into from
Mar 18, 2021

Conversation

pavelfeldman
Copy link
Member

@pavelfeldman pavelfeldman commented Mar 18, 2021

Fixes #5866

await waitForEvent.promise;
const page = (await waitForEvent.promise) as Page;
if (page._pageIsError)
throw page._pageIsError;
Copy link
Member

Choose a reason for hiding this comment

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

consider creating a new error and chaining it with page init error for better stack trace

@pavelfeldman pavelfeldman merged commit d53cea7 into microsoft:master Mar 18, 2021
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.

[Internal] pageOrError masks exceptions and makes API inconsistent
2 participants