From b13f146bc333366cb8f151f3a7ae77c657396998 Mon Sep 17 00:00:00 2001 From: ErzengelLichtes Date: Mon, 27 Dec 2021 11:36:14 -0800 Subject: [PATCH] Changed writing specific text to be more generic --- src/NetscriptFunctions.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/NetscriptFunctions.ts b/src/NetscriptFunctions.ts index 493aa3181..823b5533d 100644 --- a/src/NetscriptFunctions.ts +++ b/src/NetscriptFunctions.ts @@ -454,7 +454,7 @@ export function NetscriptFunctions(workerScript: WorkerScript): NS { if (port < 1 || port > CONSTANTS.NumNetscriptPorts) { throw makeRuntimeErrorMsg( funcName, - `Trying to write to invalid port: ${port}. Only ports 1-${CONSTANTS.NumNetscriptPorts} are valid.`, + `Trying to use an invalid port: ${port}. Only ports 1-${CONSTANTS.NumNetscriptPorts} are valid.`, ); } const iport = NetscriptPorts[port - 1];