aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/reader.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/reader.c b/src/reader.c
index b85284cd..59e0dd2e 100644
--- a/src/reader.c
+++ b/src/reader.c
@@ -118,8 +118,9 @@ page(SerdReader* reader)
reader->eof = true;
if (ferror(reader->fd)) {
reader->error = true;
- return r_err(reader, SERD_ERR_UNKNOWN,
- "read error: %s\n", strerror(errno));
+ r_err(reader, SERD_ERR_UNKNOWN,
+ "read error: %s\n", strerror(errno));
+ return SERD_ERR_UNKNOWN;
} else {
return SERD_FAILURE;
}