Move error functionality to new wrapper

This commit is contained in:
Snarling
2022-08-06 17:53:09 -04:00
parent 74f3d6507f
commit 3a2e676c9b
7 changed files with 46 additions and 105 deletions
+1 -1
View File
@@ -637,7 +637,7 @@ export function NetscriptSingularity(player: IPlayer, workerScript: WorkerScript
() => `Installing backdoor on '${server.hostname}' in ${convertTimeMsToTimeElapsedString(installTime, true)}`,
);
return netscriptDelay(installTime, workerScript).then(function () {
return netscriptDelay("singularity.installBackdoor", installTime, workerScript).then(function () {
_ctx.log(() => `Successfully installed backdoor on '${server.hostname}'`);
server.backdoorInstalled = true;