mirror of
https://github.com/openfrontio/OpenFrontIO.git
synced 2026-06-21 09:20:47 +00:00
alert on stack trace
This commit is contained in:
@@ -206,9 +206,9 @@
|
||||
* bugfix: when trade ships captured don't render DONE 12/3/2024
|
||||
* use mini A* for all pathfinding DONE 12/3/2024
|
||||
* bugfix: gameStop not found error DONE 12/3/2024
|
||||
* log stack traces & display them on screen DONE 12/3/2024
|
||||
* record and replay games for debugging purposes
|
||||
* bugfix: destroyers can't find path to dst and freeze
|
||||
* log stack traces & display them on screen
|
||||
* record single player game stats
|
||||
* add radiation from nuke
|
||||
* add cities
|
||||
|
||||
@@ -173,7 +173,14 @@ export class GameRunner {
|
||||
}
|
||||
this.isProcessingTurn = true
|
||||
this.gs.addExecution(...this.executor.createExecs(this.turns[this.currTurn]))
|
||||
this.gs.executeNextTick()
|
||||
try {
|
||||
this.gs.executeNextTick()
|
||||
throw Error("test")
|
||||
} catch (error) {
|
||||
const errorText = `Error: ${error.message}\nStack: ${error.stack}`;
|
||||
alert("Game crashed! Error info copied to clipboard. Please paste this in your bug report in Discord.");
|
||||
navigator.clipboard.writeText(errorText);
|
||||
}
|
||||
this.renderer.tick()
|
||||
this.currTurn++
|
||||
this.isProcessingTurn = false
|
||||
|
||||
Reference in New Issue
Block a user