Skip to content

Commit ab4faf0

Browse files
fix(core): Improve Macie error handling (#766)
* Adding new tag for cfn stacks * regular expression fix for testMatch with jest for cross os * Fixing store outputs * Adding additional check for macie exception
1 parent d3b41ec commit ab4faf0

File tree

1 file changed

+6
-0
lines changed
  • src/lib/custom-resources/cdk-macie-enable-admin/runtime/src

1 file changed

+6
-0
lines changed

src/lib/custom-resources/cdk-macie-enable-admin/runtime/src/index.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,12 @@ async function enableOrgAdmin(properties: HandlerProperties) {
6767
)
6868
) {
6969
console.warn(e);
70+
} else if (
71+
message.includes(
72+
`The request failed because there's already a delegated Macie administrator account for your organization`,
73+
)
74+
) {
75+
console.warn(e);
7076
} else {
7177
throw e;
7278
}

0 commit comments

Comments
 (0)