Selaa lähdekoodia

HPCC-8987 - MoveExternalFile error misleading

MoveExternalFile gives and error when the target exists,
due to a bug however, when the error traced the source file name.

Signed-off-by: Jake Smith <jake.smith@lexisnexis.com>
Jake Smith 12 vuotta sitten
vanhempi
commit
59d0d7d209
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  1. 1 1
      plugins/fileservices/fileservices.cpp

+ 1 - 1
plugins/fileservices/fileservices.cpp

@@ -2033,7 +2033,7 @@ FILESERVICES_API void  FILESERVICES_CALL fsMoveExternalFile(ICodeContext * ctx,c
     torfn.setPath(ep,topath);
     Owned<IFile> fileto = createIFile(torfn);
     if (fileto->exists())
-        throw MakeStringException(-1,"fsMoveExternalFile: Destination %s already exists",frompath);
+        throw MakeStringException(-1,"fsMoveExternalFile: Destination %s already exists", topath);
     fileto.clear();
     Owned<IFile> file = createIFile(fromrfn);
     file->move(topath);