Changed writing specific text to be more generic

This commit is contained in:
ErzengelLichtes 2021-12-27 11:36:14 -08:00
parent 90ca9407d5
commit b13f146bc3

@ -454,7 +454,7 @@ export function NetscriptFunctions(workerScript: WorkerScript): NS {
if (port < 1 || port > CONSTANTS.NumNetscriptPorts) { if (port < 1 || port > CONSTANTS.NumNetscriptPorts) {
throw makeRuntimeErrorMsg( throw makeRuntimeErrorMsg(
funcName, 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]; const iport = NetscriptPorts[port - 1];