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 (facebook#711)

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

Signed-off-by: Aeneas Rekkas (arekkas) <aeneas@ory.am>

* Ignore errors
  • Loading branch information
arekkas authored and feiqitian committed Oct 25, 2016
1 parent 190592a commit 177b5ec
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 177b5ec

Please sign in to comment.