Quantcast
Channel: Ember.JS - Latest topics
Viewing all articles
Browse latest Browse all 4870

How to handle ember errors?

$
0
0

I’ve added the next code

Ember.onerror = function (error) {
    sendError(error);
        }

Yes, I get errors here but not all. For example, I can’t handle the next error: Error in application route Error: Assertion Failed: You made a 'findAll' request for 'mymodel' records, but the adapter's response did not have any data

I tried to add into application route:

    actions: {
        error(error, transition) {
            sendError(error);
        }
    }

But It doesn’t help.

2 posts - 2 participants

Read full topic


Viewing all articles
Browse latest Browse all 4870

Trending Articles