Skip to content

Commit

Permalink
HPCC-31054 Improve error message when file copy runs out of disk space
Browse files Browse the repository at this point in the history
Signed-off-by: Gavin Halliday <[email protected]>
  • Loading branch information
ghalliday committed Jan 3, 2024
1 parent 272a004 commit 7ebbe8e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion system/jlib/jfile.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3264,7 +3264,8 @@ void doCopyFile(IFile * target, IFile * source, size32_t buffersize, ICopyFilePr
// try to delete partial copy
StringBuffer s;
s.append("copyFile target=").append(dest->queryFilename()).append(" source=").append(source->queryFilename()).appendf("; read/write failure (%d): ",e->errorCode());
exc.setown(MakeStringException(e->errorCode(), "%s", s.str()));
e->errorMessage(s);
exc.setown(makeStringException(e->errorCode(), s.str()));
e->Release();
EXCLOG(exc, "doCopyFile");
}
Expand Down

0 comments on commit 7ebbe8e

Please sign in to comment.