Skip to content

Commit

Permalink
report size of attempted read
Browse files Browse the repository at this point in the history
  • Loading branch information
kr committed Dec 12, 2011
1 parent 977e3b1 commit 7685018
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion file.c
Expand Up @@ -219,7 +219,7 @@ readfull(File *f, void *c, int n, int *err, char *desc)
return 0;
}
if (r != n) {
warnpos(f, -r, "unexpected EOF reading %s", desc);
warnpos(f, -r, "unexpected EOF reading %d bytes (got %d): %s", n, r, desc);
*err = 1;
return 0;
}
Expand Down

0 comments on commit 7685018

Please sign in to comment.