Nicer error output

This commit is contained in:
Ingo Weinhold
2011-11-25 06:17:40 +01:00
parent 870d5c92fe
commit 16ca035b2b
+2 -1
View File
@@ -285,7 +285,8 @@ private:
return errno; return errno;
} }
if ((size_t)bytesWritten != toCopy) { if ((size_t)bytesWritten != toCopy) {
fprintf(stderr, "Error: Failed to write all data\n"); fprintf(stderr, "Error: Failed to write all data (%zd of "
"%zu)\n", bytesWritten, toCopy);
return B_ERROR; return B_ERROR;
} }