mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-11-26 17:43:48 +01:00
Merge pull request #3078 from CrafterKolyan/patch-1
Fix error message for scp
This commit is contained in:
commit
59aa0df456
@ -1121,7 +1121,7 @@ export function NetscriptFunctions(workerScript: WorkerScript): NS {
|
|||||||
|
|
||||||
// Invalid file name
|
// Invalid file name
|
||||||
if (!scriptname.endsWith(".lit") && !isScriptFilename(scriptname) && !scriptname.endsWith("txt")) {
|
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;
|
let destServer: BaseServer | null;
|
||||||
|
Loading…
Reference in New Issue
Block a user