diff --git a/src/NetscriptFunctions.ts b/src/NetscriptFunctions.ts index e5825101c..2f4943572 100644 --- a/src/NetscriptFunctions.ts +++ b/src/NetscriptFunctions.ts @@ -166,7 +166,8 @@ export function NetscriptFunctions(workerScript: WorkerScript): NS { const safeGetServer = function (hostname: string, ctx: NetscriptContext): BaseServer { const server = GetServer(hostname); if (server == null) { - throw ctx.makeRuntimeErrorMsg(`Invalid hostname: ${hostname}`); + const str = hostname === "" ? "'' (empty string)" : "'" + hostname + "'"; + throw ctx.makeRuntimeErrorMsg(`Invalid hostname: ${str}`); } return server; }; diff --git a/src/PersonObjects/Sleeve/Sleeve.ts b/src/PersonObjects/Sleeve/Sleeve.ts index 195730b61..4f6f5cf30 100644 --- a/src/PersonObjects/Sleeve/Sleeve.ts +++ b/src/PersonObjects/Sleeve/Sleeve.ts @@ -521,8 +521,6 @@ export class Sleeve extends Person { this.shock = 1; this.storedCycles = 0; this.sync = Math.max(this.memory, 1); - - this.logs = []; } /**