Skip to content

Commit

Permalink
Handdled errors close to the functions
Browse files Browse the repository at this point in the history
  • Loading branch information
nbhoski committed Jul 2, 2024
1 parent 4009180 commit 761112b
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions src/buildSummary.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,14 +36,10 @@ export function getBuildSummaryTable(tasks: Task[]): string[][] {
}

export function writeSummary(taskSummaryTableRows: string[][]) {
try {
core.summary
.addTable(taskSummaryTableRows)
.write();
} catch (e) {
console.error('An error occurred while adding the build results table to the summary:', e);
}

core.summary
.addTable(taskSummaryTableRows)
.write();
}

export function processAndDisplayBuildSummary() {
Expand Down

0 comments on commit 761112b

Please sign in to comment.