mirror of
https://github.com/MCCTeam/Minecraft-Console-Client
synced 2025-10-14 21:22:49 +00:00
Debug messages for login attempt
Print stack traces when debugmessages=true for issue #696
This commit is contained in:
parent
342fadbfeb
commit
5e11348e6f
1 changed files with 14 additions and 2 deletions
|
|
@ -270,20 +270,32 @@ namespace MinecraftClient.Protocol
|
||||||
return LoginResult.OtherError;
|
return LoginResult.OtherError;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
catch (System.Security.Authentication.AuthenticationException)
|
catch (System.Security.Authentication.AuthenticationException e)
|
||||||
{
|
{
|
||||||
|
if (Settings.DebugMessages)
|
||||||
|
{
|
||||||
|
ConsoleIO.WriteLineFormatted("§8" + e.ToString());
|
||||||
|
}
|
||||||
return LoginResult.SSLError;
|
return LoginResult.SSLError;
|
||||||
}
|
}
|
||||||
catch (System.IO.IOException e)
|
catch (System.IO.IOException e)
|
||||||
{
|
{
|
||||||
|
if (Settings.DebugMessages)
|
||||||
|
{
|
||||||
|
ConsoleIO.WriteLineFormatted("§8" + e.ToString());
|
||||||
|
}
|
||||||
if (e.Message.Contains("authentication"))
|
if (e.Message.Contains("authentication"))
|
||||||
{
|
{
|
||||||
return LoginResult.SSLError;
|
return LoginResult.SSLError;
|
||||||
}
|
}
|
||||||
else return LoginResult.OtherError;
|
else return LoginResult.OtherError;
|
||||||
}
|
}
|
||||||
catch
|
catch (Exception e)
|
||||||
{
|
{
|
||||||
|
if (Settings.DebugMessages)
|
||||||
|
{
|
||||||
|
ConsoleIO.WriteLineFormatted("§8" + e.ToString());
|
||||||
|
}
|
||||||
return LoginResult.OtherError;
|
return LoginResult.OtherError;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue