Update main.rs (#12027)

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
This commit is contained in:
Syed Ghufran Hassan authored and GitHub committed 2025-06-10 10:56:10 +08:00
1 parent 83f45b2212
commit 738afb54d7
1 file changed
+1
+1
View File
@@ -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();