mirror of
https://github.com/amadvance/snapraid.git
synced 2026-11-29 11:26:48 -05:00
Prints also the Windows GetLastError() in strerror().
This commit is contained in:
parent
9d4f988f95
commit
a85aa08276
4 changed files with 40 additions and 3 deletions
3
handle.c
3
handle.c
|
|
@ -220,7 +220,7 @@ int handle_read(struct snapraid_handle* handle, struct snapraid_block* block, un
|
|||
#endif
|
||||
|
||||
if (read_ret < 0) {
|
||||
fprintf(out, "Error reading file '%s' at offset %"PRIu64". %s.\n", handle->path, offset, strerror(errno));
|
||||
fprintf(out, "Error reading file '%s' at offset %"PRIu64" for size %u. %s.\n", handle->path, offset + count, read_size - count, strerror(errno));
|
||||
return -1;
|
||||
}
|
||||
if (read_ret == 0) {
|
||||
|
|
@ -230,7 +230,6 @@ int handle_read(struct snapraid_handle* handle, struct snapraid_block* block, un
|
|||
|
||||
count += read_ret;
|
||||
} while (count < read_size);
|
||||
|
||||
|
||||
/* pad with 0 */
|
||||
if (read_size < block_size) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue