PackageWriterImpl::_MoveHeapChunk(): better output

This commit is contained in:
Ingo Weinhold 2011-07-03 08:28:32 +02:00
parent 6f785748aa
commit cc3f28c0b5

View File

@ -1144,7 +1144,8 @@ PackageWriterImpl::_MoveHeapChunk(off_t fromOffset, off_t toOffset, off_t size)
throw status_t(errno);
}
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);
}