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

[BUGFIX beta] improve errors when InjectedProperty is misused #11722

Merged
merged 1 commit into from
Jul 12, 2015

Conversation

jamesarosen
Copy link

Previously, if InjectedProperty was created improperly, it would fail with an obtuse "undefined has no property type" error. This introduces an assertion to improve the readability of that error case.

/cc @rwjblue

@jamesarosen
Copy link
Author

I'm not sure this is really a bug, but none of the other categories really seem to fit.

@rwjblue
Copy link
Member

rwjblue commented Jul 12, 2015

  • without this assertion we have a really crappy error message
  • bad errors are a bug
  • BUGFIX works for me 🎯

👍 - Thanks for submitting!

Previously, if InjectedProperty was created improperly, it would fail with
an obtuse "undefined has no property type" error. This introduces an
assertion to improve the readability of that error case.
@jamesarosen jamesarosen force-pushed the injected-property-assert branch from dae01eb to 7a3e967 Compare July 12, 2015 17:50
@jamesarosen
Copy link
Author

I had introduced a failing test by fixing a typo. I've re-pushed.

rwjblue added a commit that referenced this pull request Jul 12, 2015
[BUGFIX beta] improve errors when InjectedProperty is misused
@rwjblue rwjblue merged commit 5146427 into emberjs:master Jul 12, 2015
@rwjblue
Copy link
Member

rwjblue commented Jul 12, 2015

Thank you!

@jamesarosen jamesarosen deleted the injected-property-assert branch July 12, 2015 19:42
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.

2 participants