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
+4 -1
View File
@@ -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.");