From 4cdfde31daa40dee974a34414d6919197916e9fe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BD=95=E5=86=A0=E5=B3=B0?= Date: Thu, 11 Sep 2025 19:19:55 +0800 Subject: [PATCH] update AssetArtScanner --- .../Editor/AssetArtScanner/AssetArtScannerSetting.cs | 2 +- Assets/YooAsset/Editor/AssetArtScanner/ScannerResult.cs | 8 +++++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/Assets/YooAsset/Editor/AssetArtScanner/AssetArtScannerSetting.cs b/Assets/YooAsset/Editor/AssetArtScanner/AssetArtScannerSetting.cs index dd54aa6c..128e021f 100644 --- a/Assets/YooAsset/Editor/AssetArtScanner/AssetArtScannerSetting.cs +++ b/Assets/YooAsset/Editor/AssetArtScanner/AssetArtScannerSetting.cs @@ -46,7 +46,7 @@ namespace YooAsset.Editor } catch (Exception e) { - return new ScannerResult(e.StackTrace); + return new ScannerResult(e.Message, e.StackTrace); } } diff --git a/Assets/YooAsset/Editor/AssetArtScanner/ScannerResult.cs b/Assets/YooAsset/Editor/AssetArtScanner/ScannerResult.cs index 94b71fd4..a956269c 100644 --- a/Assets/YooAsset/Editor/AssetArtScanner/ScannerResult.cs +++ b/Assets/YooAsset/Editor/AssetArtScanner/ScannerResult.cs @@ -18,6 +18,11 @@ namespace YooAsset.Editor /// public string ErrorInfo { private set; get; } + /// + /// 错误堆栈 + /// + public string ErrorStack { private set; get; } + /// /// 是否成功 /// @@ -33,9 +38,10 @@ namespace YooAsset.Editor } - public ScannerResult(string error) + public ScannerResult(string error, string stack) { ErrorInfo = error; + ErrorStack = stack; } public ScannerResult(string filePath, ScanReport report) {