GUACAMOLE-598: Abort rendering of pages if critical data fails to load (data without which the page is non-functional).

This commit is contained in:
Michael Jumper committed 2018-07-27 14:50:17 -07:00
1 parent c897c7eb26
commit 5866c7e251
16 files changed
+25 -21

No files matched your search

@@ -205,6 +205,10 @@ angular.module('auth').factory('authenticationService', ['$injector',
else if (error.type === Error.Type.INSUFFICIENT_CREDENTIALS)
$rootScope.$broadcast('guacInsufficientCredentials', parameters, error);
// Abort rendering of page if an internal error occurs
else if (error.type === Error.Type.INTERNAL_ERROR)
$rootScope.$broadcast('guacFatalPageError', error);
// Authentication failed
throw error;