Skip to content

Commit

Permalink
fix(avatars): exit with code 1 on error (#92)
Browse files Browse the repository at this point in the history
  • Loading branch information
sgoudham authored Aug 12, 2024
1 parent 97bf1d6 commit 32e4747
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/lib/getAvatars.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ try {
await Promise.all(currentMaintainers.map((maintainer) => fetchAndProcessImage(maintainer)));
} catch (e) {
console.error("Processing failed: ", e);
process.exit(1);
}

await $`rm ${PUBLIC_DIR}/*.png`;

0 comments on commit 32e4747

Please sign in to comment.