瀏覽代碼

Add stack trace when failing to deserialize scene

habeebweeb 4 年之前
父節點
當前提交
3a244f23a4
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      COM3D2.MeidoPhotoStudio.Plugin/MeidoPhotoStudio/MeidoPhotoStudio.cs

+ 1 - 0
COM3D2.MeidoPhotoStudio.Plugin/MeidoPhotoStudio/MeidoPhotoStudio.cs

@@ -191,6 +191,7 @@ namespace COM3D2.MeidoPhotoStudio.Plugin
                         $"Failed to deserialize scene '{filePath}' because {e.Message}"
                         + $"\nCurrent header: '{header}'. Last header: '{previousHeader}'"
                     );
+                    Utility.LogError(e.StackTrace);
                     return;
                 }
             }