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

Always assert the looked up authenticator #2359

Merged
merged 1 commit into from
Jan 26, 2022
Merged

Always assert the looked up authenticator #2359

merged 1 commit into from
Jan 26, 2022

Conversation

bertdeblock
Copy link
Contributor

Redo of #2336.

Instead of:

TypeError: Cannot set properties of undefined (setting '__OWNER__ember16431396598451637272055234__')

This will throw:

Error: Assertion Failed: No authenticator for factory "authenticator:foo" could be found!

Which should be clearer to the user what went wrong. This will be the case everywhere were _lookupAuthenticator is called.

Copy link
Member

@marcoow marcoow left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice 👍

@marcoow marcoow merged commit e0b543d into mainmatter:master Jan 26, 2022
@BobrImperator
Copy link
Collaborator

Sorry for the delay - I just released the change, thought we did so already 🙏

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