PackageWriterImpl::_MoveHeapChunk(): better output

This commit is contained in:
Ingo Weinhold
2011-11-25 06:19:01 +01:00
parent 8ffba2a6cb
commit f4417e14fa
+2 -1
View File
@@ -1144,7 +1144,8 @@ PackageWriterImpl::_MoveHeapChunk(off_t fromOffset, off_t toOffset, off_t size)
throw status_t(errno); throw status_t(errno);
} }
if ((size_t)bytesRead < toCopy) { if ((size_t)bytesRead < toCopy) {
fListener->PrintError("Failed to read from package file.\n"); fListener->PrintError("Failed to read from package file (wanted "
"%zu bytes, got %zd).\n", toCopy, bytesRead);
throw status_t(B_IO_ERROR); throw status_t(B_IO_ERROR);
} }