From d9fc791021317d6823078a3f3779a79aa3bc84b4 Mon Sep 17 00:00:00 2001 From: Thomas White Date: Wed, 6 Feb 2013 20:39:01 +0100 Subject: Fix process_hkl --- libcrystfel/src/stream.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'libcrystfel') 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. */ } -- cgit v1.2.3