diff options
Diffstat (limited to 'libcrystfel/src/stream.c')
-rw-r--r-- | libcrystfel/src/stream.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libcrystfel/src/stream.c b/libcrystfel/src/stream.c index fbcbaf2e..877a1824 100644 --- a/libcrystfel/src/stream.c +++ b/libcrystfel/src/stream.c @@ -431,6 +431,10 @@ int read_chunk(Stream *st, struct image *image) } while ( 1 ); + if ( !feof(st->fh) ) { + ERROR("Error reading stream.\n"); + } + return 1; /* Either error or EOF, don't care because we will complain * on the terminal if it was an error. */ } |