From 32afaae3e26da09aa2a04f4ccf5b84c856b2a8f8 Mon Sep 17 00:00:00 2001 From: Snarling <84951833+Snarling@users.noreply.github.com> Date: Tue, 16 Aug 2022 20:37:50 -0400 Subject: [PATCH] Improve atExit error message --- src/Netscript/killWorkerScript.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Netscript/killWorkerScript.ts b/src/Netscript/killWorkerScript.ts index af45b3988..30bc18ea4 100644 --- a/src/Netscript/killWorkerScript.ts +++ b/src/Netscript/killWorkerScript.ts @@ -62,7 +62,7 @@ function stopAndCleanUpWorkerScript(ws: WorkerScript): void { let message = e instanceof ScriptDeath ? e.errorMessage : String(e); message = message.replace(/.*\|DELIMITER\|/, ""); dialogBoxCreate( - `Error trying to call atExit for script ${ws.name} on ${ws.hostname} ${ws.scriptRef.args}\n` + message, + `Error trying to call atExit for script ${[ws.name, ...ws.args].join(" ")} on ${ws.hostname}\n ${message}`, ); console.log(e); }