I’m migrating my app from ED 0.13 to 1.0 and found one strange place, I’ve pasted code example here.
The main problem is when backend declined the model save and return 422 with validation errors then I’ve got these in the console:
POST localhost:3000/requests 422 (Unprocessable Entity)
XHR finished loading: “http://localhost:3000/requests”.
and no console.log with ‘reject’ or error.
I’ve found that there is ‘throw reason;’ inside _commit function in ED and if I commented it out then I’ll get my ‘rejected’ in the console, but undefined for the ‘error’ object.
It looks very strange too me, because of this topic, where there is no problem with the code like this.
So, the main questions: what’s wrong with my setup and why there is ‘throw reason;’ inside ED code?