mirror of https://github.com/embarklabs/embark.git
fail silently if opn doesn't work
This commit is contained in:
parent
72943dc0e5
commit
4f8107bf17
|
@ -47,7 +47,10 @@ class Server {
|
|||
("http://" + canonicalHost(this.hostname) +
|
||||
":" + this.port).bold.underline.green, this.port);
|
||||
if (!opened) {
|
||||
opn(`http://${canonicalHost(this.hostname)}:${this.port}`);
|
||||
// fail silently, e.g. in a docker container, by cacthing promise
|
||||
// rejection w/ a noop
|
||||
opn(`http://${canonicalHost(this.hostname)}:${this.port}`)
|
||||
.catch(function () {});
|
||||
opened = true;
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue