Update check-cs-env.ts

This commit is contained in:
Eugenio Romano 2021-04-19 11:15:53 +01:00 committed by GitHub
parent 43633ce6c0
commit aed2208205
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -35,7 +35,7 @@ async function checkEnv() {
await alfrescoJsApi.login(program.username, program.password);
} catch (error) {
if (error.error.code === 'ETIMEDOUT') {
if (error?.error.code === 'ETIMEDOUT') {
logger.error('The env is not reachable. Terminating');
process.exit(1);
}