summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorLinus Färnstrand <linus@mullvad.net>2019-06-05 12:19:32 +0200
committerLinus Färnstrand <linus@mullvad.net>2019-06-05 12:19:32 +0200
commit7618e831837bbed460b41282f70de45164b1946b (patch)
tree40c4a5e7064fdda7518b6ae990606da572c25eeb
parente093f0b8d2cd1be754147151f566d092d57006ba (diff)
parent4531e42fdacd76102c2b85b5d2087a4fc73662f4 (diff)
downloadmullvadvpn-7618e831837bbed460b41282f70de45164b1946b.tar.xz
mullvadvpn-7618e831837bbed460b41282f70de45164b1946b.zip
Merge branch 'add-frontend-deserialization-error-logging'
-rw-r--r--gui/src/main/index.ts11
1 files changed, 10 insertions, 1 deletions
diff --git a/gui/src/main/index.ts b/gui/src/main/index.ts
index 35ed25351f..b4c97cbb2c 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,
+ ResponseParseError,
+ SubscriptionListener,
+} 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);
+ }
},
);