From 396e71955ea940f856faf595ccf662c2c70dac42 Mon Sep 17 00:00:00 2001 From: omuretsu <84951833+Snarling@users.noreply.github.com> Date: Fri, 26 May 2023 04:04:17 -0400 Subject: [PATCH] Fix scp logs Hostname was not being displayed correctly --- src/NetscriptFunctions.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/NetscriptFunctions.ts b/src/NetscriptFunctions.ts index d49513d59..b00fcb588 100644 --- a/src/NetscriptFunctions.ts +++ b/src/NetscriptFunctions.ts @@ -838,8 +838,10 @@ export const ns: InternalAPI = { } // Overwrite script if it already exists const result = destServer.writeToContentFile(contentFilePath, sourceContentFile.content); - helpers.log(ctx, () => `Copied file ${contentFilePath} from ${sourceServer} to ${destServer}`); - if (result.overwritten) helpers.log(ctx, () => `Warning: ${contentFilePath} was overwritten on ${destServer}`); + helpers.log(ctx, () => `Copied file ${contentFilePath} from ${sourceServer.hostname} to ${destServer.hostname}`); + if (result.overwritten) { + helpers.log(ctx, () => `Warning: ${contentFilePath} was overwritten on ${destServer.hostname}`); + } } // --- Literature Files ---