-
-
Notifications
You must be signed in to change notification settings - Fork 33
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
improve debugging possibilities of error messages #23
Comments
I’d be happy to have a go at this. I’ve been bitten by it before… 😅 |
Maybe the error could read: <div
{{did-insert undefined}}
^ Expected value to be a function, instead received "undefined"
This error occurred in: "path/to/file" on line #, column #.
And was encountered while rendering:
<ComponentA>
<ComponentB>
<ThisComponnent> <- this component ? I think there are apis for getting the component stack? I forget what they are though? |
gnclmorais
added a commit
to gnclmorais/ember-render-modifiers
that referenced
this issue
Oct 12, 2021
When the passed `fn` to the helper is not a function, this commit improves the error message users will see, hopefully helping with the debugging process. Fixes emberjs#23
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
If passed fn for
did-insert
is not an function, it's literally udebuggable across application (there is no mentions of key name, component name, closest dom node and such)The text was updated successfully, but these errors were encountered: