增加报错输出

This commit is contained in:
ww-rm
2025-04-14 17:11:56 +08:00
parent 3d967c9812
commit aa62f30b05

View File

@@ -70,10 +70,10 @@ namespace SpineViewer.Spine.Implementations.SpineObject
skeletonJson = new SkeletonJson(atlas);
skeletonData = skeletonJson.ReadSkeletonData(SkelPath);
}
catch
catch (Exception ex)
{
// 都不行就报错
throw new InvalidDataException($"Unknown skeleton file format {SkelPath}");
throw new InvalidDataException($"Unknown skeleton file format {SkelPath}", ex);
}
}