erkobridee/angularjs-ee-boilerplate — pull request #1 by mariojunior (2014-05-28 03:16:08+00:00)
Title: fix a bug when errors happens without response

:bug: Sometimes errors happens on back-end and we don't receive any response (maybe the connection is broken by proxy network) and the loading progress bar stops in the middle at screen.
Now, if there is no response object on the response callback, I use a $q.reject to ensure the promise's behavior correctly.