Skip to content

Commit

Permalink
openBrowser() causes docker-compose set ups to fail because of spawn …
Browse files Browse the repository at this point in the history
…EACCESS (#711)

* openBrowser() causes docker-compose set ups to fail because of spawn EACCESS - closes #710

Signed-off-by: Aeneas Rekkas (arekkas) <[email protected]>

* Ignore errors
  • Loading branch information
arekkas authored and gaearon committed Sep 23, 2016
1 parent 0e611e2 commit 2050174
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion packages/react-scripts/scripts/start.js
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,11 @@ function openBrowser(port, protocol) {
}
// Fallback to opn
// (It will always open new tab)
opn(protocol + '://localhost:' + port + '/');
try {
opn(protocol + '://localhost:' + port + '/');
} catch (err) {
// Ignore errors.
}
}

// We need to provide a custom onError function for httpProxyMiddleware.
Expand Down

0 comments on commit 2050174

Please sign in to comment.