Nicer error output

This commit is contained in:
Ingo Weinhold 2011-06-19 22:16:51 +02:00
parent 870d5c92fe
commit 16ca035b2b

View File

@ -285,7 +285,8 @@ private:
return errno;
}
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;
}