lib/assets/javascripts/identifier_interceptor.js.coffee in material_raingular-0.1.7 vs lib/assets/javascripts/identifier_interceptor.js.coffee in material_raingular-0.1.8
- old
+ new
@@ -1,8 +1,8 @@
angular.factories
.factory 'IdentifierInterceptor', ($q, $rootScope) ->
request: (config) ->
config.headers.angular = true
config
- requestError: (rejection) -> rejection
+ requestError: (rejection) -> $q.reject(rejection)
response: (response) -> response
- responseError: (rejection) -> rejection
+ responseError: (rejection) -> $q.reject(rejection)