summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--mullvad-ipc-client/src/lib.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/mullvad-ipc-client/src/lib.rs b/mullvad-ipc-client/src/lib.rs
index c1a205a44f..22c0b0d707 100644
--- a/mullvad-ipc-client/src/lib.rs
+++ b/mullvad-ipc-client/src/lib.rs
@@ -57,16 +57,16 @@ pub fn new_standalone_transport<
}
});
- rx.wait().expect("No transport handles returned").map(
- |(rpc_client, server_handle, executor)| {
+ rx.wait()
+ .map_err(|_| io::Error::new(io::ErrorKind::NotFound, "No transport handles returned"))?
+ .map(|(rpc_client, server_handle, executor)| {
let subscriber =
jsonrpc_client_pubsub::Subscriber::new(executor, rpc_client.clone(), server_handle);
DaemonRpcClient {
rpc_client,
subscriber,
}
- },
- )
+ })
}
fn spawn_transport<