Skip to content

Commit

Permalink
main: throw error if no artifacts were found
Browse files Browse the repository at this point in the history
  • Loading branch information
dawidd6 authored Oct 7, 2020
1 parent 3cd20b2 commit 96d3154
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 96d3154

Please sign in to comment.