mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-04-16 14:28:36 +02:00
IPVGO: Improve error logging to include stacktraces (#1212)
This commit is contained in:
committed by
GitHub
parent
1ad6f9f310
commit
057ccc2a2b
@@ -22,14 +22,16 @@ import {
|
||||
handlePassTurn,
|
||||
makePlayerMove,
|
||||
resetBoardState,
|
||||
throwError,
|
||||
validateMove,
|
||||
validateTurn,
|
||||
} from "../Go/effects/netscriptGoImplementation";
|
||||
import { getEnumHelper } from "../utils/EnumHelper";
|
||||
import { errorMessage } from "../Netscript/ErrorMessages";
|
||||
|
||||
const logger = (ctx: NetscriptContext) => (message: string) => helpers.log(ctx, () => message);
|
||||
const error = (ctx: NetscriptContext) => (message: string) => throwError(ctx.workerScript, message);
|
||||
const error = (ctx: NetscriptContext) => (message: string) => {
|
||||
throw errorMessage(ctx, message);
|
||||
};
|
||||
|
||||
/**
|
||||
* Go API implementation
|
||||
|
||||
Reference in New Issue
Block a user