From cc3f28c0b5237b9afc9a26ebc90aed6e50c2dc32 Mon Sep 17 00:00:00 2001 From: Ingo Weinhold Date: Sun, 3 Jul 2011 08:28:32 +0200 Subject: [PATCH] PackageWriterImpl::_MoveHeapChunk(): better output --- src/kits/package/hpkg/PackageWriterImpl.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/kits/package/hpkg/PackageWriterImpl.cpp b/src/kits/package/hpkg/PackageWriterImpl.cpp index 5181c5e16a..9bf4913b62 100644 --- a/src/kits/package/hpkg/PackageWriterImpl.cpp +++ b/src/kits/package/hpkg/PackageWriterImpl.cpp @@ -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); }