Skip to content

Commit

Permalink
Merge pull request #80 from danielwestendorf/catch-the-promise
Browse files Browse the repository at this point in the history
Add a catch on the chome launcher promise
  • Loading branch information
danielwestendorf committed Jan 14, 2020
2 parents 4aec434 + d604b30 commit 60b46dd
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,14 @@ ChromeLauncher.launch({
chromePath: (process.env.GOOGLE_CHROME_SHIM || '/usr/bin/google-chrome'),
port: 9222,
connectionPollInterval: 10
}).then(chrome => {
}).then((chrome) => {
console.log(`Chrome debugging port running on ${chrome.port}`);

webServer.start()
console.log('Starting web server...')
}).catch((error) => {
console.error(error)
console.error('Exiting')

process.exit(1)
})

0 comments on commit 60b46dd

Please sign in to comment.