mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2025-12-21 01:36:02 +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.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;
|
||||
}
|
||||
|
||||
@ -873,7 +873,7 @@ module spine {
|
||||
try {
|
||||
skeletonData = json.readSkeletonData(jsonText);
|
||||
} 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;
|
||||
}
|
||||
} else {
|
||||
@ -882,7 +882,7 @@ module spine {
|
||||
try {
|
||||
skeletonData = binary.readSkeletonData(binaryData);
|
||||
} 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;
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user