Nicer error output

This commit is contained in:
Ingo Weinhold
2011-07-17 16:54:18 +02:00
parent 52e079692f
commit d971dfb688
+2 -1
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;
}