aboutsummaryrefslogtreecommitdiff
path: root/src/cubeit.c
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2011-03-28 18:47:13 +0200
committerThomas White <taw@physics.org>2012-02-22 15:27:22 +0100
commit176b63b62ec8e9ee1cc782d25399f3abf25c85f2 (patch)
tree5f7616652715a3f33dd926934d432d5b8c219d96 /src/cubeit.c
parent2a6ce4a23bd88ca2603b47559ac831dbead6c6ad (diff)
Fix up stream error handling
Diffstat (limited to 'src/cubeit.c')
-rw-r--r--src/cubeit.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/cubeit.c b/src/cubeit.c
index 51f4a57c..f85acdf3 100644
--- a/src/cubeit.c
+++ b/src/cubeit.c
@@ -393,7 +393,9 @@ static void *get_image(void *qp)
/* Get the next filename */
if ( read_chunk(qargs->fh, &image) == 1 ) {
- ERROR("Failed to read chunk from the input stream.\n");
+ if ( ferror(qargs->fh) ) {
+ ERROR("Stream read error.\n");
+ }
return NULL;
}