Skip to content

Commit

Permalink
fix: add guard for missing dudewhere index links
Browse files Browse the repository at this point in the history
  • Loading branch information
Alan Shaw committed Oct 18, 2023
1 parent 0b8fa95 commit b3f7188
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions scripts/rollup.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,11 @@ async function main () {
}
}

if (!shards.length) {
console.error(`❌ missing shard links: ${root}`)
process.exit(1)
}

console.log(`ℹ️ DAG found in ${shards.length} shards`)

// Ensure shards exist in CARPARK
Expand Down

0 comments on commit b3f7188

Please sign in to comment.