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

[BUGFIX lts] Mark error as handled before transition for error routes and substates #15689

Merged
merged 1 commit into from
Oct 2, 2017

Conversation

kratiahuja
Copy link
Contributor

We currently were not marking the error as "handled" before transitioning to the error route (even though we were handling the error by transitioning to the error route/substate). Due to this, the error was being bubbled up and thrown. In the browser this is fine, but in fastboot this causes the visit promise to be rejected and the error template to not be serialized.

Super thank you and shout out to @rwjblue for helping figure out the fix!

cc: @rwjblue

@rwjblue
Copy link
Member

rwjblue commented Oct 1, 2017

Great work here! Can you prefix the commit with [BUGFIX lts]?

@kratiahuja
Copy link
Contributor Author

Sure will do.

@kratiahuja kratiahuja changed the title Mark error as handled before transition for error routes and substates [BUGFIX lts] Mark error as handled before transition for error routes and substates Oct 1, 2017
@kratiahuja
Copy link
Contributor Author

Fixed more routing test that were wrapping around the error originally being thrown. Hopefully travis god is 🍏 now.

@kratiahuja
Copy link
Contributor Author

Sauce test failures seem unrelated. This should be good to review.

@rwjblue
Copy link
Member

rwjblue commented Oct 2, 2017

Ya, that sauce labs job has been giving us loads of grief lately. I definitely do not think this is related to your changes here.

@rwjblue rwjblue merged commit ed381d7 into emberjs:master Oct 2, 2017
@rwjblue
Copy link
Member

rwjblue commented Oct 2, 2017

Thank you @kratiahuja!

@kratiahuja kratiahuja deleted the fastboot-error-template branch October 3, 2017 00:37
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.

2 participants