mirror of
https://github.com/smogon/pokemon-showdown-client.git
synced 2026-05-09 04:23:01 -05:00
Battles: More informative crash messages
This commit is contained in:
parent
5a4258d1cb
commit
6870ef5d80
|
|
@ -6010,7 +6010,6 @@ var Battle = (function () {
|
|||
this.log('<div class="chat">Error parsing: ' + Tools.escapeHTML(str) + '</div>', preempt);
|
||||
if (e.stack) {
|
||||
var stack = '' + e.stack;
|
||||
stack = stack.split("\n").slice(0, 2).join("\n");
|
||||
this.log('<div class="chat" style="white-space:pre-wrap">' + Tools.escapeHTML(stack) + '</div>', preempt);
|
||||
} else {
|
||||
this.log('<div class="chat">Error: ' + Tools.escapeHTML('' + e) + '</div>', preempt);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user