Skip to content

Commit

Permalink
Add failure message
Browse files Browse the repository at this point in the history
  • Loading branch information
Loudbooks committed Sep 8, 2024
1 parent c6dfbab commit 549573a
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions loginspect/LogInspect/LogInspect/Modules/LogCommandModule.cs
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,17 @@ private string GeneratePageOne(string[] lines, int stacktraceAmount)
Console.WriteLine(e);
}

if (minecraftVersion == "" && timeCreated == "")
{
newLines =
[
"Failed to retrieve log information."

];

return string.Join("\n", newLines);
}

newLines.Add("");
newLines.Add($"Fatal Errors: `{lines.Count(line => line.Contains("/FATAL"))}`");
newLines.Add($"Errors: `{lines.Count(line => line.Contains("/ERROR"))}`");
Expand Down

0 comments on commit 549573a

Please sign in to comment.