增加报错信息

This commit is contained in:
ww-rm
2025-09-11 23:17:13 +08:00
parent 415df555c7
commit 9c0acf7302
11 changed files with 140 additions and 49 deletions

View File

@@ -115,8 +115,9 @@ namespace Spine
{
_data = SpineObjectData.New(Version, skelPath, atlasPath, textureLoader);
}
catch
catch (Exception ex)
{
_logger.Trace(ex.ToString());
throw new InvalidDataException($"Failed to load spine with version '{version}'");
}
}