diff options
| author | Janito Vaqueiro Ferreira Filho <janito@mullvad.net> | 2018-08-02 17:46:12 -0300 |
|---|---|---|
| committer | Janito Vaqueiro Ferreira Filho <janito@mullvad.net> | 2018-08-02 17:46:12 -0300 |
| commit | 58e73802b39bdbad3b38fc1389105b978a6316c9 (patch) | |
| tree | 6a6d66685b2d450eb40c1bd33c57329d0561c04b /app/lib | |
| parent | 36d0345d6b7b29a77fd7da5fd8d2a34d1a09ccf8 (diff) | |
| download | mullvadvpn-58e73802b39bdbad3b38fc1389105b978a6316c9.tar.xz mullvadvpn-58e73802b39bdbad3b38fc1389105b978a6316c9.zip | |
Remove `UnknownError` type
Diffstat (limited to 'app/lib')
| -rw-r--r-- | app/lib/daemon-rpc.js | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/app/lib/daemon-rpc.js b/app/lib/daemon-rpc.js index 402fbcd76c..fb3915e068 100644 --- a/app/lib/daemon-rpc.js +++ b/app/lib/daemon-rpc.js @@ -4,7 +4,7 @@ import JsonRpcTransport, { RemoteError as JsonRpcRemoteError, TimeOutError as JsonRpcTimeOutError, } from './jsonrpc-transport'; -import { UnknownError, CommunicationError, InvalidAccountError, NoDaemonError } from '../errors'; +import { CommunicationError, InvalidAccountError, NoDaemonError } from '../errors'; import { object, @@ -283,8 +283,9 @@ export class DaemonRpc implements DaemonRpcProtocol { } } else if (error instanceof JsonRpcTimeOutError) { throw new NoDaemonError(); + } else { + throw error; } - throw new UnknownError(error.message); } try { |
