Skip to content

Commit 15a7f60

Browse files
committed
Fix [object Object] in crash reporter caused by console.error()
1 parent ad2de5e commit 15a7f60

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

templates/game.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -190,8 +190,8 @@
190190
alert("The crash reporter crashed, yikes");
191191
return; // Panic we have a problem here
192192
}
193-
194-
sendErrorLog(args[0], "console.error()");
193+
message = JSON.stringify(args)
194+
sendErrorLog(message, "console.error()");
195195
consoleErrorLogger.apply(console, args);
196196
recursionBreaker = 0;
197197
};

0 commit comments

Comments
 (0)