Skip to content

Commit 9028cbe

Browse files
committed
update
1 parent 72bd48a commit 9028cbe

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

scripts/cleanupAtlasTestLeftovers.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,9 +114,9 @@ async function main(): Promise<void> {
114114
}
115115
}
116116

117-
// If there were any errors, throw with all accumulated errors
118117
if (allErrors.length > 0) {
119-
const errorSummary = `Cleanup completed with ${allErrors.length} error(s):\n${allErrors.map((err, i) => `${i + 1}. ${err}`).join("\n")}`;
118+
const errorList = allErrors.map((err, i) => `${i + 1}. ${err}`).join("\n");
119+
const errorSummary = `Cleanup completed with ${allErrors.length} error(s):\n${errorList}`;
120120
throw new Error(errorSummary);
121121
}
122122

0 commit comments

Comments
 (0)