mirror of
https://github.com/openfrontio/OpenFrontIO.git
synced 2026-07-19 23:20:09 +00:00
better crash log
This commit is contained in:
@@ -180,7 +180,8 @@ export class GameRunner {
|
||||
this.gs.executeNextTick()
|
||||
} catch (error) {
|
||||
const errorText = `Error: ${error.message}\nStack: ${error.stack}`;
|
||||
alert("Game crashed!\n Please paste the following your bug report in Discord:\n" + errorText);
|
||||
console.error(errorText)
|
||||
alert(`Game crashed! client id: ${this.clientID}\n Please paste the following your bug report in Discord:\n` + errorText);
|
||||
}
|
||||
this.renderer.tick()
|
||||
this.currTurn++
|
||||
|
||||
Reference in New Issue
Block a user