Skip to content

Commit

Permalink
Warn users of not found process types
Browse files Browse the repository at this point in the history
  • Loading branch information
eablack committed Aug 22, 2024
1 parent d46786a commit 3d9c5ea
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions packages/cli/src/commands/container/push.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,11 @@ export default class Push extends Command {
const jobs = await selectJobs(possibleJobs, processTypes as string[], recursive)

if (jobs.length === 0) {
if (processTypes.length > 0) {
for (const processType of processTypes) {
ux.warn(`Dockerfile.${processType} not found`)
}
}
ux.error('No images to push', {exit: 1})

Check failure on line 87 in packages/cli/src/commands/container/push.ts

View workflow job for this annotation

GitHub Actions / test (16.x, ubuntu-latest)

Expected blank line before this statement
}

Expand Down

0 comments on commit 3d9c5ea

Please sign in to comment.