mirror of
https://github.com/MCCTeam/Minecraft-Console-Client
synced 2025-10-14 21:22:49 +00:00
More startup error handling
- Pass minecraft login failure message to AutoRelog bot (suggestion by doranchak) - Fix NullReferenceException in McTcpClient caused by SocketException in ProxyHandler - Refactor error handling code in Program.InitializeClient() - More detailed error messages on network errors.
This commit is contained in:
parent
791ecba454
commit
6261e7adb7
5 changed files with 48 additions and 58 deletions
|
|
@ -57,15 +57,11 @@ namespace MinecraftClient.Proxy
|
|||
}
|
||||
else return new TcpClient(host, port);
|
||||
}
|
||||
catch (Exception e)
|
||||
catch (ProxyException e)
|
||||
{
|
||||
if (e is ProxyException || e is SocketException)
|
||||
{
|
||||
ConsoleIO.WriteLineFormatted("§8" + e.Message);
|
||||
proxy = null;
|
||||
return null;
|
||||
}
|
||||
else throw;
|
||||
ConsoleIO.WriteLineFormatted("§8" + e.Message);
|
||||
proxy = null;
|
||||
return null;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue