mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-03-26 22:49:01 +08:00
[ts][player] Better error message serialization.
This commit is contained in:
parent
938a8c8369
commit
69647313ef
@ -12129,7 +12129,7 @@ var spine;
|
|||||||
skeletonData = json.readSkeletonData(jsonText);
|
skeletonData = json.readSkeletonData(jsonText);
|
||||||
}
|
}
|
||||||
catch (e) {
|
catch (e) {
|
||||||
this.showError("Error: could not load skeleton .json.<br><br>" + escapeHtml(JSON.stringify(e)));
|
this.showError("Error: could not load skeleton .json.<br><br>" + e.toString());
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -12140,7 +12140,7 @@ var spine;
|
|||||||
skeletonData = binary.readSkeletonData(binaryData);
|
skeletonData = binary.readSkeletonData(binaryData);
|
||||||
}
|
}
|
||||||
catch (e) {
|
catch (e) {
|
||||||
this.showError("Error: could not load skeleton .skel.<br><br>" + escapeHtml(JSON.stringify(e)));
|
this.showError("Error: could not load skeleton .skel.<br><br>" + e.toString());
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
@ -11440,7 +11440,7 @@ var spine;
|
|||||||
skeletonData = json.readSkeletonData(jsonText);
|
skeletonData = json.readSkeletonData(jsonText);
|
||||||
}
|
}
|
||||||
catch (e) {
|
catch (e) {
|
||||||
this.showError("Error: could not load skeleton .json.<br><br>" + escapeHtml(JSON.stringify(e)));
|
this.showError("Error: could not load skeleton .json.<br><br>" + e.toString());
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -11451,7 +11451,7 @@ var spine;
|
|||||||
skeletonData = binary.readSkeletonData(binaryData);
|
skeletonData = binary.readSkeletonData(binaryData);
|
||||||
}
|
}
|
||||||
catch (e) {
|
catch (e) {
|
||||||
this.showError("Error: could not load skeleton .skel.<br><br>" + escapeHtml(JSON.stringify(e)));
|
this.showError("Error: could not load skeleton .skel.<br><br>" + e.toString());
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
@ -867,7 +867,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>" + escapeHtml(JSON.stringify(e)));
|
this.showError("Error: could not load skeleton .json.<br><br>" + e.toString());
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
@ -876,7 +876,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>" + escapeHtml(JSON.stringify(e)));
|
this.showError("Error: could not load skeleton .skel.<br><br>" + e.toString());
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user