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

hasLoaded gives confusing error message #153

Open
ryanto opened this issue Aug 7, 2019 · 0 comments
Open

hasLoaded gives confusing error message #153

ryanto opened this issue Aug 7, 2019 · 0 comments
Labels

Comments

@ryanto
Copy link
Member

ryanto commented Aug 7, 2019

user.hasLoaded('thisRelationshipDoesntExist')
// => "Assertion Failed: You tried to load the relationship thisRelationshipDoesntExist for a user, but that relationship does not exist [ember-data-storefront]"

The error message should reflect that the invalid relationship was accessed over hasLoaded, and not "tried to load".

@ryanto ryanto added the Bug label Aug 7, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant