From 797e45a527166c01ca19e8f4b9728812dfb89e7e Mon Sep 17 00:00:00 2001 From: MpakobecEx Date: Wed, 21 Oct 2026 18:19:18 +0500 Subject: [PATCH] Show detailed login connection errors --- client/Assets/Vanguard/Runtime/UI/LoginView.cs | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/client/Assets/Vanguard/Runtime/UI/LoginView.cs b/client/Assets/Vanguard/Runtime/UI/LoginView.cs index aa46e0b..af0b7a3 100644 --- a/client/Assets/Vanguard/Runtime/UI/LoginView.cs +++ b/client/Assets/Vanguard/Runtime/UI/LoginView.cs @@ -191,7 +191,19 @@ namespace Vanguard.UI catch (Exception exception) { Debug.LogException(exception); - SetStatus("Не удалось связаться с сервером. Проверьте адрес.", new Color(1f, 0.55f, 0.45f)); + var detail = exception.Message ?? string.Empty; + if (detail.IndexOf("Insecure connection", StringComparison.OrdinalIgnoreCase) >= 0) + { + SetStatus( + "Unity блокирует HTTP. Player Settings → Allow downloads over HTTP = Always, затем перезапусти Unity.", + new Color(1f, 0.55f, 0.45f)); + } + else + { + SetStatus( + "Не удалось связаться: " + detail, + new Color(1f, 0.55f, 0.45f)); + } } finally {