Skip to content

Commit

Permalink
Merge pull request #32 from dawidd6/dawidd6-patch-1
Browse files Browse the repository at this point in the history
main: throw error if no artifacts were found
  • Loading branch information
dawidd6 authored Oct 7, 2020
2 parents 3cd20b2 + 96d3154 commit f040bd1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions main.js
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,9 @@ async function main() {
artifacts = artifacts.data.artifacts
}

if (artifacts.length == 0)
throw new Error("no artifacts found")

for (const artifact of artifacts) {
console.log("==> Artifact:", artifact.id)

Expand Down

0 comments on commit f040bd1

Please sign in to comment.