mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-04-18 07:18:38 +02:00
IPVGO: Improve error logging to include stacktraces (#1212)
This commit is contained in:
committed by
GitHub
parent
1ad6f9f310
commit
057ccc2a2b
@@ -12,7 +12,6 @@ import {
|
||||
simpleBoardFromBoard,
|
||||
} from "../boardAnalysis/boardAnalysis";
|
||||
import { getScore, resetWinstreak } from "../boardAnalysis/scoring";
|
||||
import { WorkerScript } from "../../Netscript/WorkerScript";
|
||||
import { WHRNG } from "../../Casino/RNG";
|
||||
|
||||
/**
|
||||
@@ -437,13 +436,6 @@ export function cheatSuccessChance(cheatCount: number) {
|
||||
return Math.max(Math.min(0.6 * cheatCountScalar * Player.mults.crime_success + sourceFileBonus, 1), 0);
|
||||
}
|
||||
|
||||
/**
|
||||
* Throw a runtime error that halts the player's script
|
||||
*/
|
||||
export function throwError(ws: WorkerScript, errorMessage: string) {
|
||||
throw `RUNTIME ERROR\n${ws.name}@${ws.hostname} (PID - ${ws.pid})\n\n ${errorMessage}`;
|
||||
}
|
||||
|
||||
/**
|
||||
* Attempts to remove an existing router from the board. Can fail. If failed, can immediately end the game
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user