@Mithrilhall wrote:
Following the guides at https://guides.emberjs.com/v2.4.0/routing/loading-and-error-substates/ , how can I identify the error type?
actions: { error(error, transition) { if (error) { return this.transitionTo('errorPage'); } } }
In the above code; which I have in my application route, 'error' returns a '0' only. How can I identify the error types? Such as 401 etc.
Posts: 1
Participants: 1