Skip to content

Commit 6f23a7c

Browse files
aggregating multiple error lines into single line (#15245)
1 parent caf3437 commit 6f23a7c

File tree

5 files changed

+569
-7
lines changed

5 files changed

+569
-7
lines changed

Tasks/AzureCLIV2/Tests/package-lock.json

Lines changed: 17 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Tasks/AzureCLIV2/azureclitask.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,9 +58,7 @@ export class azureclitask {
5858

5959
if (failOnStdErr && aggregatedErrorLines.length > 0) {
6060
let error = FAIL_ON_STDERR;
61-
aggregatedErrorLines.forEach((err: string) => {
62-
tl.error(err);
63-
});
61+
tl.error(aggregatedErrorLines.join("\n"));
6462
throw error;
6563
}
6664
}

0 commit comments

Comments
 (0)