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 +#include #include #include #include @@ -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);