diff --git a/src/NetscriptWorker.ts b/src/NetscriptWorker.ts index c561b5a9d..fa9924141 100644 --- a/src/NetscriptWorker.ts +++ b/src/NetscriptWorker.ts @@ -178,7 +178,7 @@ function startNetscript1Script(workerScript: WorkerScript): Promise`; + msg += "
"; + msg += errorMsg; + dialogBoxCreate(msg); + workerScript.env.stopFlag = true; + workerScript.running = false; + killWorkerScript(workerScript); + return Promise.resolve(workerScript); + } }); }; int.setProperty(scope, name, int.createAsyncFunction(tempWrapper));