Skip to content

Commit

Permalink
- update.
Browse files Browse the repository at this point in the history
  • Loading branch information
etiennenoel committed Oct 18, 2023
1 parent a108904 commit 1a5d21c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/aws/src/clients/cloudformation.client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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.stack.matches("(.*)" + stackName + "(.*)does not exist(.*)")) {
if (e.message.match("(.*)" + stackName + "(.*)does not exist(.*)")) {
return undefined;
} else {
throw e;
Expand Down

0 comments on commit 1a5d21c

Please sign in to comment.