🎨 Improve error message

This commit is contained in:
C-3PO 2019-07-22 21:41:04 +02:00
parent 71894a9c4a
commit 8702752b0e
Signed by: c3po
GPG key ID: 62993C4BB4D86F24

View file

@ -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);
} }
} }