Ember.js: Improve error message "Assertion Failed: A helper named 'something-something' could not be found"

Created on 27 Oct 2016  ·  4Comments  ·  Source: emberjs/ember.js

Lets say you add

{{something-something a=b}}

to any Ember template.

The error you receive is Assertion Failed: A helper named "something-something" could not be found.

Why 'a helper'? The user could be trying to reference a component. For me the most common case is a user typo when referencing the component.

A couple of our new guys stumbled on this error, could/should it be improved to:

Assertion Failed: A component or helper named "something-something" could not be found

?

Most helpful comment

@adam-knights Hey Adam, i created a PR for this, see here https://github.com/emberjs/ember.js/pull/14587

All 4 comments

Sounds good to me, would you mind submitting a PR that we can review?

Will do :)

@adam-knights Hey Adam, i created a PR for this, see here https://github.com/emberjs/ember.js/pull/14587

Thanks @serenaf , i hadnt found the time yet.

Was this page helpful?
0 / 5 - 0 ratings