diff options
| author | Andrej Mihajlov <and@mullvad.net> | 2019-06-04 19:06:40 +0200 |
|---|---|---|
| committer | Linus Färnstrand <linus@mullvad.net> | 2019-06-05 11:14:43 +0200 |
| commit | 238435c4ef88ed44142b14f57826e9f72ac194d1 (patch) | |
| tree | 3df59bf75a07f17ae6d38da64988876d3c507659 | |
| parent | e093f0b8d2cd1be754147151f566d092d57006ba (diff) | |
| download | mullvadvpn-238435c4ef88ed44142b14f57826e9f72ac194d1.tar.xz mullvadvpn-238435c4ef88ed44142b14f57826e9f72ac194d1.zip | |
Log deserialization error
| -rw-r--r-- | gui/src/main/index.ts | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/gui/src/main/index.ts b/gui/src/main/index.ts index 35ed25351f..16d46591d0 100644 --- a/gui/src/main/index.ts +++ b/gui/src/main/index.ts @@ -27,7 +27,12 @@ import { setupLogging, } from '../shared/logging'; import { getOpenAtLogin, setOpenAtLogin } from './autostart'; -import { ConnectionObserver, DaemonRpc, SubscriptionListener } from './daemon-rpc'; +import { + ConnectionObserver, + DaemonRpc, + SubscriptionListener, + ResponseParseError, +} from './daemon-rpc'; import GuiSettings from './gui-settings'; import NotificationController from './notification-controller'; import { resolveBin } from './proc'; @@ -490,6 +495,10 @@ class ApplicationMain { }, (error: Error) => { log.error(`Cannot deserialize the daemon event: ${error.message}`); + + if (error instanceof ResponseParseError && error.validationError) { + log.error(error.validationError.message); + } }, ); |
