Skip to content

Commit

Permalink
Add error output when browser doesn't start
Browse files Browse the repository at this point in the history
  • Loading branch information
tdooner committed May 20, 2024
1 parent dffbe1f commit 79fb6a2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions scraper/scrape.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ export const scrapeAll = async function() {
create: initializeBrowser,
destroy: browser => browser.close()
}, { max: NUM_BROWSERS, min: 1 })
pool.on("factoryCreateError", (ex) => console.error("Error starting browser:", ex))

await Promise.all(systems.map(async system => {
const driver = await pool.acquire()
Expand Down

0 comments on commit 79fb6a2

Please sign in to comment.