aboutsummaryrefslogtreecommitdiff
path: root/libcrystfel/src/image-cbf.c
diff options
context:
space:
mode:
Diffstat (limited to 'libcrystfel/src/image-cbf.c')
-rw-r--r--libcrystfel/src/image-cbf.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/libcrystfel/src/image-cbf.c b/libcrystfel/src/image-cbf.c
index ecbc3209..b8f09a1f 100644
--- a/libcrystfel/src/image-cbf.c
+++ b/libcrystfel/src/image-cbf.c
@@ -640,7 +640,10 @@ int image_cbf_read(struct image *image,
return 1;
}
- unpack_panels(image, dtempl, data, w, h);
+ if ( unpack_panels(image, dtempl, data, w, h) ) {
+ ERROR("Failed to read CBF data\n");
+ return 1;
+ }
free(data);
//cbf_fill_in_beam_parameters(image->beam, f, image);