Show detailed login connection errors
CI / test (push) Has been cancelled Details

This commit is contained in:
MpakobecEx 2026-10-21 18:19:18 +05:00
parent 2fca766ba1
commit 797e45a527
1 changed files with 13 additions and 1 deletions

View File

@ -191,7 +191,19 @@ namespace Vanguard.UI
catch (Exception exception) catch (Exception exception)
{ {
Debug.LogException(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 finally
{ {