aboutsummaryrefslogtreecommitdiff
path: root/libcrystfel
diff options
context:
space:
mode:
authorThomas White <taw@bitwiz.org.uk>2013-02-06 20:39:01 +0100
committerThomas White <taw@bitwiz.org.uk>2013-02-06 20:39:01 +0100
commitd9fc791021317d6823078a3f3779a79aa3bc84b4 (patch)
tree44da17fe9ae28a63541c7c43b0eec1d94287047d /libcrystfel
parenta1ee07e0887bd23491218301ad440a4ad2efb24f (diff)
Fix process_hkl
Diffstat (limited to 'libcrystfel')
-rw-r--r--libcrystfel/src/stream.c4
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. */
}