[ts][player] Better error message serialization.

This commit is contained in:
badlogic 2021-05-17 13:33:25 +02:00
parent 938a8c8369
commit 69647313ef
5 changed files with 8 additions and 8 deletions

View File

@ -12129,7 +12129,7 @@ var spine;
skeletonData = json.readSkeletonData(jsonText);
}
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;
}
}
@ -12140,7 +12140,7 @@ var spine;
skeletonData = binary.readSkeletonData(binaryData);
}
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;
}
}

File diff suppressed because one or more lines are too long

View File

@ -11440,7 +11440,7 @@ var spine;
skeletonData = json.readSkeletonData(jsonText);
}
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;
}
}
@ -11451,7 +11451,7 @@ var spine;
skeletonData = binary.readSkeletonData(binaryData);
}
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;
}
}

File diff suppressed because one or more lines are too long

View File

@ -867,7 +867,7 @@ module spine {
try {
skeletonData = json.readSkeletonData(jsonText);
} 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;
}
} else {
@ -876,7 +876,7 @@ module spine {
try {
skeletonData = binary.readSkeletonData(binaryData);
} 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;
}
}