mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
[AAE-4701] ADF check env - Fail if the env is not reachable (#6714)
* Fail if the env is not reachable * Remove useless file
This commit is contained in:
@@ -28,6 +28,10 @@ export class CheckEnv {
|
||||
});
|
||||
await this.alfrescoJsApi.login(this.username, this.password);
|
||||
} catch (e) {
|
||||
if (e.error.code === 'ETIMEDOUT') {
|
||||
logger.error('The env is not reachable. Terminating');
|
||||
process.exit(1);
|
||||
}
|
||||
logger.error('Login error environment down or inaccessible');
|
||||
this.counter++;
|
||||
if (this.MAX_RETRY === this.counter) {
|
||||
|
Reference in New Issue
Block a user