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 b35a96c commit 4009180
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,11 @@ async function run() {
(cmd, args) => exec.exec(cmd, args, execOptions),
startupOptions
).finally(() => {
buildSummary.processAndDisplayBuildSummary();
try {
buildSummary.processAndDisplayBuildSummary();
} catch (e) {
console.error('An error occurred while reading the build summary file:', e);
}
});

}
Expand Down

0 comments on commit 4009180

Please sign in to comment.