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

Don't swallow errors when loading records #125

Merged
merged 1 commit into from
Dec 21, 2015

Conversation

philipp-spiess
Copy link
Contributor

The default behavior would swallow all errors that could occur while loading records and prints an obscure error message.

This is bad because:

  • When you read the error, you don't know what to do - there is no description of a "right" serverside configuration.
  • When you override the afterInfinityModel hook, it won't display possible errors - this took me a few minutes to figure out what's wrong.
  • When an error occurs while loading the resource (i.e 500 error), the default error ember handling will be ignored - The user is left in a broken UI state and you have no chance to fix this.

It's safer to leave the original error messages as is and don't swallow errors in favor of a more generic one.

@philipp-spiess philipp-spiess changed the title Don't swallow errors when loading records. Don't swallow errors when loading records Dec 21, 2015
hhff added a commit that referenced this pull request Dec 21, 2015
Don't swallow errors when loading records
@hhff hhff merged commit 70db3a9 into adopted-ember-addons:master Dec 21, 2015
@hhff
Copy link
Collaborator

hhff commented Dec 21, 2015

Rad - thankyou @philipp-spiess ! This has been bugging us for a while 👍

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.

3 participants