mirror of
https://github.com/claunia/edccchk.git
synced 2025-12-16 19:24:51 +00:00
Show error number
This commit is contained in:
2
common.h
2
common.h
@@ -555,7 +555,7 @@ void printfileerror(FILE* f, const char* name) {
|
|||||||
int e = errno;
|
int e = errno;
|
||||||
printf("Error: ");
|
printf("Error: ");
|
||||||
if(name) { printf("%s: ", name); }
|
if(name) { printf("%s: ", name); }
|
||||||
printf("%s\n", f && feof(f) ? "Unexpected end-of-file" : strerror(e));
|
printf("%s (%d)\n", f && feof(f) ? "Unexpected end-of-file" : strerror(e), e);
|
||||||
}
|
}
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|||||||
Reference in New Issue
Block a user