mirror of
https://github.com/gyurix1968/guacamole-client.git
synced 2025-09-11 15:37:41 +00:00
GUACAMOLE-526: Handle rejections for absolutely all promises.
This commit is contained in:
@@ -190,7 +190,7 @@ angular.module('auth').factory('authenticationService', ['$injector',
|
||||
})
|
||||
|
||||
// If authentication fails, propogate failure to returned promise
|
||||
['catch'](function authenticationFailed(error) {
|
||||
['catch'](requestService.createErrorCallback(function authenticationFailed(error) {
|
||||
|
||||
// Request credentials if provided credentials were invalid
|
||||
if (error.type === Error.Type.INVALID_CREDENTIALS)
|
||||
@@ -203,7 +203,7 @@ angular.module('auth').factory('authenticationService', ['$injector',
|
||||
// Authentication failed
|
||||
throw error;
|
||||
|
||||
});
|
||||
}));
|
||||
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user