Show detailed login connection errors
CI / test (push) Has been cancelled
Details
CI / test (push) Has been cancelled
Details
This commit is contained in:
parent
2fca766ba1
commit
797e45a527
|
|
@ -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
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in New Issue