mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2025-12-21 17:56:04 +08:00
[ts] Improved player error messages.
This commit is contained in:
parent
87886adcfe
commit
6d7f773bf1
@ -858,7 +858,7 @@ module spine {
|
|||||||
if (this.loaded) return;
|
if (this.loaded) return;
|
||||||
|
|
||||||
if (this.assetManager.hasErrors()) {
|
if (this.assetManager.hasErrors()) {
|
||||||
this.showError("Error: assets could not be loaded.<br><br>" + escapeHtml(JSON.stringify(this.assetManager.getErrors())));
|
this.showError("Error: Assets could not be loaded.<br><br>" + escapeHtml(JSON.stringify(this.assetManager.getErrors())));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -873,7 +873,7 @@ module spine {
|
|||||||
try {
|
try {
|
||||||
skeletonData = json.readSkeletonData(jsonText);
|
skeletonData = json.readSkeletonData(jsonText);
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
this.showError("Error: could not load skeleton .json.<br><br>" + e.toString());
|
this.showError("Error: Could not load skeleton JSON.<br><br>" + e.toString());
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
@ -882,7 +882,7 @@ module spine {
|
|||||||
try {
|
try {
|
||||||
skeletonData = binary.readSkeletonData(binaryData);
|
skeletonData = binary.readSkeletonData(binaryData);
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
this.showError("Error: could not load skeleton .skel.<br><br>" + e.toString());
|
this.showError("Error: Could not load skeleton binary.<br><br>" + e.toString());
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user