mirror of
https://github.com/Eaglercraft-TeaVM-Fork/eagler-teavm.git
synced 2024-12-22 08:14:09 -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">
|
||||
main(["${IDENTIFIER}"], function(result) {
|
||||
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) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user