diff options
| author | Oskar Nyberg <oskar@mullvad.net> | 2021-11-02 10:13:19 +0100 |
|---|---|---|
| committer | Oskar Nyberg <oskar@mullvad.net> | 2021-11-17 16:26:49 +0100 |
| commit | 77fb350c5c571d8d97cdd6078b2b82f8ae1c24c1 (patch) | |
| tree | 913de9e55ac4dcdecbe19bd1377cc9f973755234 | |
| parent | 3298687a198e488d66be4c6639c26c58cac60d1d (diff) | |
| download | mullvadvpn-77fb350c5c571d8d97cdd6078b2b82f8ae1c24c1.tar.xz mullvadvpn-77fb350c5c571d8d97cdd6078b2b82f8ae1c24c1.zip | |
Catch uncaught promise rejection when failing to connect to daemon
| -rw-r--r-- | gui/src/main/index.ts | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gui/src/main/index.ts b/gui/src/main/index.ts index da524a68a0..6db9ebb8d7 100644 --- a/gui/src/main/index.ts +++ b/gui/src/main/index.ts @@ -693,7 +693,9 @@ class ApplicationMain { }; private connectToDaemon() { - void this.daemonRpc.connect(); + void this.daemonRpc + .connect() + .catch((error) => log.error(`Unable to connect to daemon: ${error.message}`)); } private recoverFromBootstrapError(_error?: Error) { |
