From 738afb54d7c12eb9c622d3c7fc525330d988abdf Mon Sep 17 00:00:00 2001 From: Syed Ghufran Hassan Date: Tue, 10 Jun 2025 07:56:10 +0500 Subject: [PATCH] Update main.rs (#12027) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit common::global_init() might fail silently. Since return is used without any error logging, the user won’t know why the application didn't start so that is why added error print statement in case if it fails --- src/main.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main.rs b/src/main.rs index f295363aa..274d7735c 100644 --- a/src/main.rs +++ b/src/main.rs @@ -8,6 +8,7 @@ use librustdesk::*; #[cfg(any(target_os = "android", target_os = "ios", feature = "flutter"))] fn main() { if !common::global_init() { + eprintln!("Global initialization failed."); return; } common::test_rendezvous_server();