From b0f7fdca442e6141a0ba1a2da9fc5782c76e9c73 Mon Sep 17 00:00:00 2001 From: Snarling <84951833+Snarling@users.noreply.github.com> Date: Sat, 13 Nov 2021 09:52:17 -0500 Subject: [PATCH] Fix error throwing for unknown errors Fix error throwing for unknown errors. This should prevent unknown script/unknown error message and allow players to see custom errors that they throw. --- src/NetscriptWorker.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/NetscriptWorker.ts b/src/NetscriptWorker.ts index c7e4bdad4..f27786cfa 100644 --- a/src/NetscriptWorker.ts +++ b/src/NetscriptWorker.ts @@ -138,7 +138,8 @@ function startNetscript2Script(workerScript: WorkerScript): Promise