Skip to content

Commit

Permalink
Trap errors and fail properly when building index (#36)
Browse files Browse the repository at this point in the history
Fix #35.
  • Loading branch information
tidoust authored Apr 7, 2020
1 parent 338bad1 commit a8c1f2a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/build-index.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,4 +59,8 @@ fetchInfo(specs, { w3cApiKey })

// Return the resulting list
console.log(JSON.stringify(index, null, 2));
})
.catch(err => {
console.error(err);
process.exit(1);
});

0 comments on commit a8c1f2a

Please sign in to comment.