aboutsummaryrefslogtreecommitdiff
path: root/libcrystfel/src/image-hdf5.c
diff options
context:
space:
mode:
Diffstat (limited to 'libcrystfel/src/image-hdf5.c')
-rw-r--r--libcrystfel/src/image-hdf5.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/libcrystfel/src/image-hdf5.c b/libcrystfel/src/image-hdf5.c
index 43b20bdf..a9ced39a 100644
--- a/libcrystfel/src/image-hdf5.c
+++ b/libcrystfel/src/image-hdf5.c
@@ -1517,8 +1517,9 @@ char **image_hdf5_expand_frames(const DataTemplate *dtempl,
sh = H5Dget_space(dh);
dims = H5Sget_simple_extent_ndims(sh);
if ( dims != dims_expected ) {
- ERROR("Unexpected number of dimensions (%s)\n",
- path);
+ ERROR("Unexpected number of dimensions"
+ "(%s has %i, expected %i)\n",
+ path, dims, dims_expected);
H5Fclose(fh);
return NULL;
}