Skip to content

Commit 04022f4

Browse files
Update README.md
Modifying the setErrorInterceptor / on the example was addErrorInterceptor
1 parent a35fb46 commit 04022f4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -423,7 +423,7 @@ var refreshAccesstoken = function() {
423423
return deferred.promise;
424424
};
425425

426-
Restangular.addErrorInterceptor(function(response, deferred, responseHandler) {
426+
Restangular.setErrorInterceptor(function(response, deferred, responseHandler) {
427427
if(response.status === 403) {
428428
refreshAccesstoken().then(function() {
429429
// Repeat the request and then call the handlers the usual way.

0 commit comments

Comments
 (0)