mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-03-26 22:49:01 +08:00
[unity] Minor: Error log output cleanup.
This commit is contained in:
parent
5c8ab0aecf
commit
ff90da5848
@ -225,9 +225,12 @@ namespace Spine.Unity {
|
|||||||
} else
|
} else
|
||||||
loadedSkeletonData = SkeletonDataAsset.ReadSkeletonData(skeletonJSON.text, attachmentLoader, skeletonDataScale);
|
loadedSkeletonData = SkeletonDataAsset.ReadSkeletonData(skeletonJSON.text, attachmentLoader, skeletonDataScale);
|
||||||
} catch (Exception ex) {
|
} catch (Exception ex) {
|
||||||
if (!quiet)
|
if (!quiet) {
|
||||||
Debug.LogError("Error reading skeleton JSON file for SkeletonData asset: " + name + "\n" +
|
string formatString = hasBinaryExtension ? ".skel" : "JSON";
|
||||||
ex.Message + "\n" + ex.InnerException + "\n" + ex.StackTrace, skeletonJSON);
|
string innerExceptionLine = ex.InnerException != null ? ex.InnerException + "\n" : "";
|
||||||
|
Debug.LogError(string.Format("Error reading skeleton {0} file for SkeletonData asset: {1}\n{2}\n{3}{4}",
|
||||||
|
formatString, name, ex.Message, innerExceptionLine, ex.StackTrace), skeletonJSON);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#if UNITY_EDITOR
|
#if UNITY_EDITOR
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user