Fix error message for scp

This commit is contained in:
Nikolai Korolev 2022-03-07 11:40:06 +03:00 committed by GitHub
parent e80190e687
commit b2ec5d1691
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;