diff options
Diffstat (limited to 'libcrystfel')
-rw-r--r-- | libcrystfel/src/image.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/libcrystfel/src/image.c b/libcrystfel/src/image.c index 31125725..d62e7ad5 100644 --- a/libcrystfel/src/image.c +++ b/libcrystfel/src/image.c @@ -896,8 +896,11 @@ int imagefile_read_simple(struct imagefile *f, struct image *image) { if ( f->type == IMAGEFILE_HDF5 ) { return hdf5_read(f->hdfile, image, NULL, 0); - } else { + } else if ( f->type == IMAGEFILE_CBF ) { return read_cbf_simple(f, image); + } else { + ERROR("Unknown file type %i\n", f->type); + return 1; } } |