🎨 Improve error message
This commit is contained in:
parent
71894a9c4a
commit
8702752b0e
1 changed files with 1 additions and 1 deletions
|
@ -13,7 +13,7 @@ void readBytesIntoBuffer(uint8_t* buffer, long numBytes) {
|
||||||
file.offset += result;
|
file.offset += result;
|
||||||
|
|
||||||
if (result != numBytes) {
|
if (result != numBytes) {
|
||||||
fprintf(stderr, "Wanted to read %lu bytes from file but only read %lu bytes: %s\n", numBytes, result, strerror(errno));
|
fprintf(stderr, "Wanted to read %lu bytes from file at offset %lu but only read %lu bytes: %s\n", numBytes, file.offset, result, strerror(errno));
|
||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue