Skip to content

Commit 959440b

Browse files
committed
Updater: fixed error messages in .move() and .mkdir()
1 parent 127b014 commit 959440b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

modules/DependencyControl/FileOps.moon

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ class FileOps
168168
mode, err = FileOps.attributes target, "mode"
169169
if mode == "file"
170170
unless overwrite
171-
return false, msg.move.exists\format source, target, mode
171+
return false, msgs.move.exists\format source, target, mode
172172
FileOps.logger\trace msgs.move.overwritingFile, target
173173
res, _, err = FileOps.remove target
174174
unless res
@@ -281,7 +281,7 @@ class FileOps
281281
path = path\gsub "[\\/]+", pathMatch.sep
282282
-- check length
283283
if #path > pathMatch.maxLen
284-
return false, msgs.validateFullPath.tooLong\format #path, maxLen
284+
return false, msgs.validateFullPath.tooLong\format #path, pathMatch.maxLen
285285
-- check for invalid characters
286286
invChar = path\match pathMatch.invalidChars, ffi.os == "Windows" and 3 or nil
287287
if invChar

0 commit comments

Comments
 (0)