Skip to content

Commit 856d8b3

Browse files
fix: LLD not printing errors #150
1 parent d36fab9 commit 856d8b3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/cloudFormation.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ import { Logger } from './logger.js';
99
import * as yaml from 'yaml';
1010

1111
let cloudFormationClient: CloudFormationClient;
12+
const originalConsoleError = console.error;
1213

1314
/**
1415
* Get CloudFormation stack template
@@ -85,7 +86,6 @@ async function getCloudFormationResources(
8586
awsConfiguration: AwsConfiguration,
8687
) {
8788
// temporary disable console.error because SAM framework outputs useless errors
88-
const originalConsoleError = console.error;
8989
console.error = function () {};
9090
const { ListStackResourcesCommand } = await import(
9191
'@aws-sdk/client-cloudformation'

0 commit comments

Comments
 (0)