Skip to content
This repository has been archived by the owner on Oct 3, 2024. It is now read-only.

Commit

Permalink
Improve error handling when there are no repoNames returned from getR…
Browse files Browse the repository at this point in the history
…epositoryNames()
  • Loading branch information
Lucas Rodriguez committed Dec 8, 2023
1 parent 7413693 commit 94f7a11
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 12 deletions.
5 changes: 2 additions & 3 deletions capabilities/ecr-webhook/lib/ecr.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,9 @@ export async function createRepos(
const repoNames = getRepositoryNames(images);

if (repoNames.length === 0) {
Log.info(
`No repositories will be created for component '${deployedComponent.name}`,
throw new Error(
`unable to extract valid repository names from images (${images}) for component '${deployedComponent.name}'`,
);
return;
}

const region = process.env.AWS_REGION;
Expand Down
18 changes: 9 additions & 9 deletions manifests/pepr-module-b95dbd80-e078-5eb9-aaf3-bcb9567417d0.yaml

Large diffs are not rendered by default.

0 comments on commit 94f7a11

Please sign in to comment.