aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/inputStream_file.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/inputStream_file.c b/src/inputStream_file.c
index d1282201f..2e685f2a7 100644
--- a/src/inputStream_file.c
+++ b/src/inputStream_file.c
@@ -18,7 +18,10 @@
#include "inputStream_file.h"
+#include "log.h"
+
#include <stdio.h>
+#include <string.h>
#include <sys/types.h>
#include <unistd.h>
#include <errno.h>
@@ -71,6 +74,8 @@ size_t inputStream_fileRead(InputStream * inStream, void * ptr, size_t size,
readSize = fread(ptr,size,nmemb,(FILE *)inStream->data);
if(readSize <=0 && ferror((FILE *)inStream->data)) {
inStream->error = errno;
+ DEBUG("inputStream_fileRead: error reading: %s",
+ strerror(inStream->error));
}
inStream->offset = ftell((FILE *)inStream->data);