From aed2208205f8f39ff2c521da1e2fb6dea9aff0da Mon Sep 17 00:00:00 2001 From: Eugenio Romano Date: Mon, 19 Apr 2021 11:15:53 +0100 Subject: [PATCH] Update check-cs-env.ts --- lib/cli/scripts/check-cs-env.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/cli/scripts/check-cs-env.ts b/lib/cli/scripts/check-cs-env.ts index c61ce5422a..7c53aec1a5 100755 --- a/lib/cli/scripts/check-cs-env.ts +++ b/lib/cli/scripts/check-cs-env.ts @@ -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); }