diff options
-rw-r--r-- | libcrystfel/src/image.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/libcrystfel/src/image.c b/libcrystfel/src/image.c index f67a38e8..20f53849 100644 --- a/libcrystfel/src/image.c +++ b/libcrystfel/src/image.c @@ -948,6 +948,11 @@ struct imagefile *imagefile_open(const char *filename) f->type = IMAGEFILE_CBF; + } else { + + ERROR("Unrecognised file type: %s\n", filename); + return NULL; + } f->filename = strdup(filename); |