diff options
| author | Erik Larkö <erik@mullvad.net> | 2017-09-27 15:21:53 +0200 |
|---|---|---|
| committer | Erik Larkö <erik@mullvad.net> | 2017-09-27 16:10:31 +0200 |
| commit | cf3a00e1a8e5a98635e6920db006c54dcf9d29be (patch) | |
| tree | f377c395f8cc80aa1625a79833a0f140877334ed /app/lib | |
| parent | 5ae665c0b7dd4f274a9f437d9660fa5e79a4c7ff (diff) | |
| download | mullvadvpn-cf3a00e1a8e5a98635e6920db006c54dcf9d29be.tar.xz mullvadvpn-cf3a00e1a8e5a98635e6920db006c54dcf9d29be.zip | |
Improve error messages
Diffstat (limited to 'app/lib')
| -rw-r--r-- | app/lib/backend.js | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/app/lib/backend.js b/app/lib/backend.js index cf8e440bdf..2702c6a34a 100644 --- a/app/lib/backend.js +++ b/app/lib/backend.js @@ -102,7 +102,7 @@ export class Backend { this._store.dispatch(connectionActions.newPublicIp(ip)); }) .catch(e => { - log.info('Failed syncing with the backend', e); + log.info('Failed syncing with the backend,', e.message); }); this._ipc.getLocation() @@ -116,7 +116,7 @@ export class Backend { this._store.dispatch(connectionActions.newLocation(newLocation)); }) .catch(e => { - log.info('Failed getting new location', e); + log.info('Failed getting new location,', e.message); }); } @@ -172,7 +172,7 @@ export class Backend { this._store.dispatch(push('/connect')); }, 1000); }).catch(e => { - log.error('Failed to log in', e); + log.error('Failed to log in,', e.message); // TODO: This is not true. If there is a communication link failure the promise will be rejected too const err = new BackendError('INVALID_ACCOUNT'); @@ -203,7 +203,7 @@ export class Backend { this._store.dispatch(push('/connect')); }) .catch( e => { - log.warn('Unable to autologin', e); + log.warn('Unable to autologin,', e.message); this._store.dispatch(accountActions.autoLoginFailed()); this._store.dispatch(push('/')); @@ -224,7 +224,7 @@ export class Backend { }); }) .catch(e => { - log.info('Failed to logout', e); + log.info('Failed to logout,', e.message); }); } @@ -255,7 +255,7 @@ export class Backend { // @TODO: Failure modes return this._ipc.disconnect() .catch(e => { - log.info('Failed to disconnect', e); + log.info('Failed to disconnect,', e.message); }); } |
