From 3352b8d5f6dfcad05592717089b9284eb3eaa7b3 Mon Sep 17 00:00:00 2001 From: Simon Laux Date: Sun, 11 Jan 2026 07:10:27 +0100 Subject: [PATCH] fix windows build issue --- deltachat-rpc-server/src/main.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/deltachat-rpc-server/src/main.rs b/deltachat-rpc-server/src/main.rs index bd0a78d68..7f3b3df32 100644 --- a/deltachat-rpc-server/src/main.rs +++ b/deltachat-rpc-server/src/main.rs @@ -112,7 +112,9 @@ async fn main_impl() -> Result<()> { let (send_task, recv_task) = if let Some(unix_socket_path) = unix_socket { #[cfg(not(target_family = "unix"))] { - bail!("unix sockets are only supported on unix based operating systems"); + return Err(anyhow!( + "unix sockets are only supported on unix based operating systems" + )); } #[cfg(target_family = "unix")] unix_socket_impl(unix_socket_path, state, main_cancel.clone()).await?