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

Log current state and element with error report during broken layout flow #29088

Merged
merged 1 commit into from
Jun 30, 2020

Conversation

jridgewell
Copy link
Contributor

The error report isn't giving enough information for me to properly debug this. So, I'm now logging the current state, and attaching the associated element the element so the tagname is also reported.

Copy link

@dreamofabear dreamofabear left a comment

Choose a reason for hiding this comment

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

Please rewrite PR title to be more specific.

);
reportError(err, this.element);
err.associatedElement = this.element;
reportError(err);
return Promise.reject(err);

Choose a reason for hiding this comment

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

Are you confident keeping this?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes. The worse case is that the element is deferred to a second pass. But as soon as it goes through the flow correctly, it will do layout.

@jridgewell jridgewell changed the title Include the current state and element with error report Log current state and element with error report during broken layout flow Jun 30, 2020
@jridgewell jridgewell merged commit 21bc483 into ampproject:master Jun 30, 2020
@jridgewell jridgewell deleted the layout-scheduling-error branch June 30, 2020 17:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants