mirror of
https://github.com/RPCS3/discord-bot.git
synced 2026-01-31 01:25:22 +01:00
more fatal error cleanups
This commit is contained in:
@@ -652,9 +652,11 @@ internal static partial class LogParserResult
|
||||
win32ErrorCodes.Add(hexCode);
|
||||
}
|
||||
var trimIdx = fatalError.IndexOf(" Called from");
|
||||
if (trimIdx is -1)
|
||||
trimIdx = fatalError.IndexOf("(in file");
|
||||
var errorTxt = fatalError;
|
||||
if (trimIdx > -1)
|
||||
errorTxt = fatalError[..trimIdx];
|
||||
errorTxt = fatalError[..trimIdx].TrimEnd();
|
||||
errorTxt = errorTxt.Trim(EmbedPager.MaxFieldLength - 7);
|
||||
builder.AddField(sectionName, $"```\n{errorTxt}```");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user