Skip to content
Snippets Groups Projects
Commit 08829ac1 authored by Cristian Lalescu's avatar Cristian Lalescu
Browse files

adds debug message in case of read_value failure

parent 05147df5
No related branches found
No related tags found
No related merge requests found
Pipeline #80124 canceled
......@@ -219,7 +219,11 @@ number hdf5_tools::read_value(
if (H5Lexists(group, dset_name.c_str(), H5P_DEFAULT))
{
dset = H5Dopen(group, dset_name.c_str(), H5P_DEFAULT);
H5Dread(dset, mem_dtype, H5S_ALL, H5S_ALL, H5P_DEFAULT, &result);
herr_t status = H5Dread(dset, mem_dtype, H5S_ALL, H5S_ALL, H5P_DEFAULT, &result);
if (status < 0)
{
DEBUG_MSG("had an error trying to read %s.\n H5Dread returned status %ld\n", dset_name.c_str(), status);
}
H5Dclose(dset);
}
else
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment