Skip to content

Commit

Permalink
update error message on failed connection to use the npm explore npm …
Browse files Browse the repository at this point in the history
…run chrome cmd
  • Loading branch information
paulirish committed Jul 8, 2016
1 parent 90ffa1a commit 466beff
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lighthouse-cli/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,8 @@ lighthouse(url, flags, config)
})
.catch(err => {
if (err.code === 'ECONNREFUSED') {
console.error('Unable to connect to Chrome. Did you run ./scripts/launch-chrome.sh ?');
console.error('Unable to connect to Chrome. Please run Chrome w/ debugging port 9222 open:');
console.error(' npm explore -g lighthouse -- npm run chrome');
} else {
console.error('Runtime error encountered:', err);
console.error(err.stack);
Expand Down

0 comments on commit 466beff

Please sign in to comment.