Skip to content

Don't swallow errors when loading records#125

Merged
hhff merged 1 commit intoadopted-ember-addons:masterfrom
philipp-spiess:master
Dec 21, 2015
Merged

Don't swallow errors when loading records#125
hhff merged 1 commit intoadopted-ember-addons:masterfrom
philipp-spiess:master

Conversation

@philipp-spiess
Copy link
Copy Markdown
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
Copy Markdown
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