diff options
author | Thomas White <taw@bitwiz.org.uk> | 2013-06-01 10:05:45 -0700 |
---|---|---|
committer | Thomas White <taw@bitwiz.org.uk> | 2013-06-01 10:05:45 -0700 |
commit | efdbfea7c9774d94ebf2f98ab7a7bdf6e7948bd6 (patch) | |
tree | bb3bac8323ce0958092e114e46d1be8e5fcca29d /libcrystfel | |
parent | 13ba909dcc048765e393028f37287c9e4ad6f388 (diff) |
Complain if an HDF5 field doesn't exist
Diffstat (limited to 'libcrystfel')
-rw-r--r-- | libcrystfel/src/hdf5-file.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libcrystfel/src/hdf5-file.c b/libcrystfel/src/hdf5-file.c index bd0a3e37..d6c54616 100644 --- a/libcrystfel/src/hdf5-file.c +++ b/libcrystfel/src/hdf5-file.c @@ -695,6 +695,7 @@ double get_value(struct hdfile *f, const char *name) dh = H5Dopen2(f->fh, name, H5P_DEFAULT); if ( dh < 0 ) { + ERROR("No such field '%s'\n", name); return 0.0; } |