Skip to content

Commit 1d4c116

Browse files
committed
fix: return when an error is downplayed
1 parent 9e770b5 commit 1d4c116

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/open-next/src/adapters/logger.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ const isDownplayedErrorLog = (errorLog: AwsSdkClientCommandErrorLog) =>
4343
export function error(...args: any[]) {
4444
// we try to catch errors from the aws-sdk client and downplay some of them
4545
if (args.some((arg) => isDownplayedErrorLog(arg))) {
46-
debug(...args);
46+
return debug(...args);
4747
} else if (args.some((arg) => isOpenNextError(arg))) {
4848
// In case of an internal error, we log it with the appropriate log level
4949
const error = args.find((arg) => isOpenNextError(arg))!;

0 commit comments

Comments
 (0)