diegopamio / angular-sails-bind

An angular service to bind scope models to sailsjs models thru socket
MIT License
136 stars 25 forks source link

Server errors aren't manageable #19

Open nbiton opened 10 years ago

nbiton commented 10 years ago

I have policies that reject unauthorized requests to certain resources. It is quite easy to catch and handle if I'm using the REST API. I can't find a good way of doing this with this module yet.

avimar commented 9 years ago

Not just unauthorized, but any errors seem to be silently discarded. Sails sends back a 400 but all looks normal in the UI. How do I capture the error and show the user that their change wasn't accepted?

Preferably with the option to revert to the last accepted value.

diegopamio commented 9 years ago

Ok, sorry for the long delay, I've been buried by my day job. I'll try to do this over the weekend, or on my vacations.