mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-04-19 15:54:09 +02:00
MISC: Update messages related to text files (#2266)
This commit is contained in:
@@ -1602,7 +1602,10 @@ export const ns: InternalAPI<NSFull> = {
|
||||
(!hasTextExtension(sourcePath) && !hasScriptExtension(sourcePath)) ||
|
||||
(!hasTextExtension(destinationPath) && !hasScriptExtension(destinationPath))
|
||||
) {
|
||||
throw helpers.errorMessage(ctx, `'mv' can only be used on scripts and text files (.txt)`);
|
||||
throw helpers.errorMessage(
|
||||
ctx,
|
||||
`'mv' can only be used on scripts (.js, .jsx, .ts, .tsx) and text files (.txt, .json)`,
|
||||
);
|
||||
}
|
||||
if (sourcePath === destinationPath) {
|
||||
helpers.log(ctx, () => "WARNING: Did nothing, source and destination paths were the same.");
|
||||
|
||||
Reference in New Issue
Block a user