mercredi 27 mai 2015

How to handle errors without URL redirection with Ember

What I'm looking to do is to render custom errors without changing the URL path of the user, so using this.transitionTo is not an option.

So far the following method was working:

v1.10.1 - http://ift.tt/1FaPF5i

But since v1.11.0, there is no way to make it works

v.1.11.3 - http://ift.tt/1J1vvSO

It seems to be 'normal' according to http://ift.tt/1FaPF5k or http://ift.tt/1J1vw92 as the obtained error is:

Error while processing route: stories.index Cannot read property 'push' of undefined TypeError: Cannot read property 'push' of undefined

If I well understood, it is normal, not being able to call render() from the error action now, but what is the good way to do it then?

(I've also posted on github: http://ift.tt/1FaPF5m)

Thank you very much.




Aucun commentaire:

Enregistrer un commentaire