Skip to content

Commit

Permalink
Merge pull request #146 from argos-ci/support-no-finalized-builds
Browse files Browse the repository at this point in the history
fix: support no finalized build
  • Loading branch information
gregberge authored Sep 1, 2024
2 parents 37d76cc + d59c831 commit fdf5ec4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/cli/src/commands/finalize.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,9 @@ export function finalizeCommand(program: Command) {
},
});
spinner.succeed(
`Builds finalized: ${result.builds.map((b) => b.url).join(", ")}`,
result.builds.length === 0
? "No builds to finalize"
: `Builds finalized: ${result.builds.map((b) => b.url).join(", ")}`,
);
} catch (error) {
if (error instanceof Error) {
Expand Down

0 comments on commit fdf5ec4

Please sign in to comment.