mirror of
https://github.com/Eaglercraft-TeaVM-Fork/eagler-teavm.git
synced 2025-01-08 07:54:11 -08:00
Display more readable stack trace in HTML file that runs single test
This commit is contained in:
parent
0ade0313ce
commit
d1606ea2a5
|
@ -9,7 +9,9 @@
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
main(["${IDENTIFIER}"], function(result) {
|
main(["${IDENTIFIER}"], function(result) {
|
||||||
var message = result instanceof Error ? buildErrorMessage(result) : "OK";
|
var message = result instanceof Error ? buildErrorMessage(result) : "OK";
|
||||||
document.body.appendChild(document.createTextNode(message))
|
var pre = document.createElement("pre");
|
||||||
|
document.body.appendChild(pre);
|
||||||
|
pre.appendChild(document.createTextNode(message));
|
||||||
});
|
});
|
||||||
|
|
||||||
function buildErrorMessage(e) {
|
function buildErrorMessage(e) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user