aboutsummaryrefslogtreecommitdiff
path: root/libcrystfel/src/image-hdf5.c
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2020-07-01 11:55:23 +0200
committerThomas White <taw@physics.org>2020-07-29 18:53:44 +0200
commit3d53001a2aa50615a96a1ddbe1817ce73634f5d3 (patch)
tree96a8386b2610eb835b0905334702b6b19a264ca2 /libcrystfel/src/image-hdf5.c
parentb2f6911cd51347e8f005f2273d5bd1637c9bc3c9 (diff)
Improve error message
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;
}