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 0bd1f478..8ad091ba 100644 --- a/libcrystfel/src/image.c +++ b/libcrystfel/src/image.c @@ -926,6 +926,11 @@ ImageFeatureList *image_read_peaks(const DataTemplate *dtempl, char **image_expand_frames(const DataTemplate *dtempl, const char *filename, int *n_frames) { + if ( !file_exists(filename) ) { + ERROR("File not found: %s\n", filename); + return NULL; + } + if ( is_hdf5_file(filename) ) { return image_hdf5_expand_frames(dtempl, filename, n_frames); |