From b81d3577091b2d9d2a1fcb25a8af903c045c703f Mon Sep 17 00:00:00 2001 From: laolarou Date: Fri, 17 Nov 2023 10:52:42 -0800 Subject: [PATCH] Update DefaultLogAnalyzer.cs --- .../DefaultComponent/LogAnalysis/DefaultLogAnalyzer.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ProjBobcat/ProjBobcat/DefaultComponent/LogAnalysis/DefaultLogAnalyzer.cs b/ProjBobcat/ProjBobcat/DefaultComponent/LogAnalysis/DefaultLogAnalyzer.cs index c4e0a89..7751e58 100644 --- a/ProjBobcat/ProjBobcat/DefaultComponent/LogAnalysis/DefaultLogAnalyzer.cs +++ b/ProjBobcat/ProjBobcat/DefaultComponent/LogAnalysis/DefaultLogAnalyzer.cs @@ -80,8 +80,11 @@ public IEnumerable GenerateReport() logs[logFileType].Add(lines); } - if (logs.Count > 0 || logs.All(p => p.Value.Count == 0)) + if (logs.Count == 0 || logs.All(p => p.Value.Count == 0)) + { yield return new AnalysisReport.AnalysisReport(CrashCauses.LogFileNotFound); + yield break; + } var hasLogAnalysisResult = false; foreach (var report in AnalysisLogs(logs))