Skip to content

Commit 88ee8c3

Browse files
committed
fix(DefaultBuildinFileSystem): 未找到内置目录文件时操作视为成功
将加载内置目录文件失败的错误处理改为警告并跳过。当在Resources中未找到指定文件时,不再将操作状态标记为失败,而是记录警告日志并将状态设为成功,以允许系统在没有内置目录的情况下继续运行。
1 parent 4a23518 commit 88ee8c3

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Runtime/FileSystem/DefaultBuildinFileSystem/Operation/internal/LoadBuildinCatalogFileOperation.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,9 @@ public override void InternalOnUpdate()
4343
var catalog = Resources.Load<DefaultBuildinFileCatalog>(catalogFilePath);
4444
if (catalog == null)
4545
{
46+
YooLogger.Warning($"BuildinCatalog file not found : {catalogFilePath}. Skip loading buildin catalog.");
4647
_steps = ESteps.Done;
47-
Status = EOperationStatus.Failed;
48-
Error = $"Failed to load catalog file : {catalogFilePath}";
48+
Status = EOperationStatus.Succeed;
4949
return;
5050
}
5151

0 commit comments

Comments
 (0)