mirror of
https://github.com/fadden/nulib2.git
synced 2024-10-31 11:08:35 +00:00
Added more detail for a funky error state.
This commit is contained in:
parent
2ba8f133b6
commit
ab82bd2b4a
@ -1229,7 +1229,13 @@ Nu_CopyFileSection(NuArchive* pArchive, FILE* dstFp, FILE* srcFp, long length)
|
||||
readLen = length > kNuGenCompBufSize ? kNuGenCompBufSize : length;
|
||||
|
||||
err = Nu_FRead(srcFp, pArchive->compBuf, readLen);
|
||||
BailError(err);
|
||||
if (err != kNuErrNone) {
|
||||
Nu_ReportError(NU_BLOB, err,
|
||||
"Nu_FRead failed while copying file section "
|
||||
"(fp=0x%08lx, readLen=%ld, err=%d)\n",
|
||||
(long) srcFp, readLen, err);
|
||||
goto bail;
|
||||
}
|
||||
err = Nu_FWrite(dstFp, pArchive->compBuf, readLen);
|
||||
BailError(err);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user