diff --git a/MCGalaxy/Server/Logger.cs b/MCGalaxy/Server/Logger.cs index f78151b74..a71a96494 100644 --- a/MCGalaxy/Server/Logger.cs +++ b/MCGalaxy/Server/Logger.cs @@ -160,7 +160,12 @@ namespace MCGalaxy try { SocketException sockEx = ex as SocketException; - if (sockEx != null) LogSocketErrors(sockEx, sb); + if (sockEx != null) sb.AppendLine("Error: " + sockEx.SocketErrorCode); + } catch { } + + try { + TypeLoadException typeEx = ex as TypeLoadException; + if (typeEx != null) sb.AppendLine("Loading type: " + typeEx.TypeName); } catch { } } @@ -174,9 +179,5 @@ namespace MCGalaxy DescribeError(loadEx, sb); } } - - static void LogSocketErrors(SocketException ex, StringBuilder sb) { - sb.AppendLine("Error: " + ex.SocketErrorCode); - } } } \ No newline at end of file