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

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

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

* Ignore errors
This commit is contained in:
Aeneas
2016-09-23 12:33:23 +02:00
committed by Dan Abramov
parent 0e611e2374
commit 2050174631

View File

@@ -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.