Merge pull request #3078 from CrafterKolyan/patch-1

Fix error message for scp
This commit is contained in:
hydroflame 2022-03-07 17:30:44 -05:00 committed by GitHub
commit 59aa0df456
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -1121,7 +1121,7 @@ export function NetscriptFunctions(workerScript: WorkerScript): NS {
// Invalid file name
if (!scriptname.endsWith(".lit") && !isScriptFilename(scriptname) && !scriptname.endsWith("txt")) {
throw makeRuntimeErrorMsg("scp", "Only works for .script, .lit, and .txt files");
throw makeRuntimeErrorMsg("scp", "Only works for scripts, .lit and .txt files");
}
let destServer: BaseServer | null;