Skip to content

Commit e5558c8

Browse files
charliejllewellynCharlie Llewellyn
andauthored
added error catching for failed log metrics (#697)
* added error catching for failed log metrics Co-authored-by: Charlie Llewellyn <cjl@amazon.co.uk>
1 parent 061232b commit e5558c8

File tree

1 file changed

+1
-1
lines changed
  • src/lib/custom-resources/cdk-logs-metric-filter/runtime/src

1 file changed

+1
-1
lines changed

src/lib/custom-resources/cdk-logs-metric-filter/runtime/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ async function onCreateOrUpdate(event: CloudFormationCustomResourceEvent) {
7171
.promise(),
7272
);
7373
} else {
74-
console.warn(`Did not find LogGroup ${logGroupName}`);
74+
throw new Error(`Did not find LogGroup "${logGroupName}"`);
7575
}
7676

7777
return {

0 commit comments

Comments
 (0)