This is an automated email from the ASF dual-hosted git repository. ankovalyshyn pushed a commit to branch DLAB-449 in repository https://gitbox.apache.org/repos/asf/incubator-dlab.git
commit fb8d1c943943e521341798ac31d47a2c1694ee41 Author: Andriana Kovalyshyn <andriana_kovalys...@epam.com> AuthorDate: Mon Mar 25 11:40:26 2019 +0100 [DLAB-449]: fixed issue with error handling on login --- .../webapp/src/app/core/services/applicationSecurity.service.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/services/self-service/src/main/resources/webapp/src/app/core/services/applicationSecurity.service.ts b/services/self-service/src/main/resources/webapp/src/app/core/services/applicationSecurity.service.ts index 8e85bb4..45afecc 100644 --- a/services/self-service/src/main/resources/webapp/src/app/core/services/applicationSecurity.service.ts +++ b/services/self-service/src/main/resources/webapp/src/app/core/services/applicationSecurity.service.ts @@ -25,7 +25,7 @@ import { ApplicationServiceFacade } from './applicationServiceFacade.service'; import { AppRoutingService } from './appRouting.service'; import { StorageService } from './storage.service'; import { LoginModel } from '../../login/login.model'; -import { HTTP_STATUS_CODES } from '../util'; +import { ErrorUtils, HTTP_STATUS_CODES } from '../util'; import { DICTIONARY } from '../../../dictionary/global.dictionary'; @Injectable() @@ -64,7 +64,8 @@ export class ApplicationSecurityService { } this._loggedInStatus.next(false); return false; - })); + }), + catchError(ErrorUtils.handleServiceError)); } public logout(): Observable<boolean> { --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@dlab.apache.org For additional commands, e-mail: commits-h...@dlab.apache.org