From 8702752b0e425f19b08f3bfef68c3231a8e0a4d3 Mon Sep 17 00:00:00 2001 From: C-3PO Date: Mon, 22 Jul 2019 21:41:04 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=8E=A8=20Improve=20error=20message?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/utils/fileUtilities.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/fileUtilities.c b/src/utils/fileUtilities.c index b02417c..3f38224 100644 --- a/src/utils/fileUtilities.c +++ b/src/utils/fileUtilities.c @@ -13,7 +13,7 @@ void readBytesIntoBuffer(uint8_t* buffer, long numBytes) { file.offset += result; 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); } }