From 0c57d0f7d6d3124e8e11b4889309caa0ac31cc7a Mon Sep 17 00:00:00 2001 From: Etienne Noel Date: Wed, 18 Oct 2023 06:19:08 -0700 Subject: [PATCH] update. --- packages/aws/src/clients/cloudformation.client.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/aws/src/clients/cloudformation.client.ts b/packages/aws/src/clients/cloudformation.client.ts index 7b553dae8..634582bb9 100644 --- a/packages/aws/src/clients/cloudformation.client.ts +++ b/packages/aws/src/clients/cloudformation.client.ts @@ -76,7 +76,7 @@ export class CloudformationClient implements CloudformationClientInterface { return response.Stacks[0]; } catch (e) { this.logHandler.error("Error getting stack description from cloudformation", {error: e}, AwsModuleKeyname); - if (e.getMessage().matches("(.*)" + stackName + "(.*)does not exist(.*)")) { + if (e.message.matches("(.*)" + stackName + "(.*)does not exist(.*)")) { return undefined; } else { throw e;