From 9372c007f88d2b158bf0aa52b79cbf991c5923c2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=BE=89=E9=B8=AD=E8=9B=8B?= Date: Fri, 16 Jan 2026 22:37:36 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=80=E9=94=AE=E6=9B=B4=E6=96=B0=E5=A4=B1?= =?UTF-8?q?=E8=B4=A5=E7=9A=84=E6=97=B6=E5=80=99=E4=B8=8D=E6=8A=9B=E5=87=BA?= =?UTF-8?q?=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- BetterGenshinImpact/Core/Script/ScriptRepoUpdater.cs | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/BetterGenshinImpact/Core/Script/ScriptRepoUpdater.cs b/BetterGenshinImpact/Core/Script/ScriptRepoUpdater.cs index d6496a19..52cc6583 100644 --- a/BetterGenshinImpact/Core/Script/ScriptRepoUpdater.cs +++ b/BetterGenshinImpact/Core/Script/ScriptRepoUpdater.cs @@ -773,10 +773,11 @@ public class ScriptRepoUpdater : Singleton if (entry == null) { // 调试信息:列出当前树中的所有条目 - var availableEntries = string.Join(", ", currentTree.Select(e => e.Name)); - _logger.LogError($"在路径 '{string.Join("/", pathParts.Take(i))}' 中未找到 '{pathParts[i]}'"); - _logger.LogError($"可用的条目: {availableEntries}"); - throw new Exception($"仓库中不存在路径: {sourcePath}"); + // var availableEntries = string.Join(", ", currentTree.Select(e => e.Name)); + // _logger.LogError($"在路径 '{string.Join("/", pathParts.Take(i))}' 中未找到 '{pathParts[i]}'"); + // _logger.LogError($"可用的条目: {availableEntries}"); + // throw new Exception($"仓库中不存在路径: {sourcePath}"); + return; } if (i < pathParts.Length - 1) @@ -792,7 +793,8 @@ public class ScriptRepoUpdater : Singleton // 检出文件或目录 if (entry == null) { - throw new Exception($"未找到路径: {sourcePath}"); + // throw new Exception($"未找到路径: {sourcePath}"); + return; } if (entry.TargetType == TreeEntryTargetType.Blob)