MISC: Update messages related to text files (#2266)

This commit is contained in:
catloversg
2025-07-25 12:39:55 +07:00
committed by GitHub
parent fee75b44d4
commit 8729dc3d1b
5 changed files with 10 additions and 7 deletions
+1 -1
View File
@@ -19,7 +19,7 @@ export function mv(args: (string | number | boolean)[], server: BaseServer): voi
(!hasScriptExtension(sourcePath) && !hasTextExtension(sourcePath)) ||
(!hasScriptExtension(destinationPath) && !hasTextExtension(destinationPath))
) {
return Terminal.error(`'mv' can only be used on scripts and text files (.txt)`);
return Terminal.error(`'mv' can only be used on scripts (.js, .jsx, .ts, .tsx) and text files (.txt, .json)`);
}
// Allow content to be moved between scripts and textfiles, no need to limit this.