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

Catch errors if asset-map fails to load #42

Merged

Conversation

headquarters
Copy link
Contributor

We had an instance in our app where the asset-map failed to load, but we had provided some fallbacks, and yet our app stopped advancing. This fixes this situation; it provides a catch for the promise loading the asset map itself and then advances the app in a finally so it happens no matter what.

I wasn't sure the best way to mock the asset-map file in tests in order to write a test to show this is working, so if anyone has suggestions for doing that please let me know. The other tests are still passing fine, though.

@RuslanZavacky RuslanZavacky merged commit dc69be4 into adopted-ember-addons:master Oct 29, 2018
@RuslanZavacky
Copy link
Contributor

Gotcha, thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants