added try - catch in api and handleError methods

This commit is contained in:
Adina Parpalita
2019-10-22 13:14:57 +03:00
parent 227e05e3f9
commit e8ed183a44
13 changed files with 201 additions and 189 deletions

View File

@@ -36,7 +36,7 @@ export class AuthenticationApi extends RepoApi {
await this.apiAuth();
await this.alfrescoJsApi.logout();
} catch (error) {
console.log('--- authentication api logout catch error: ', error);
this.handleError(`${this.constructor.name} ${this.logout.name}`, error);
}
}
}