diff options
author | Binh-Minh Ribler <bmribler@hdfgroup.org> | 2019-09-03 16:00:29 (GMT) |
---|---|---|
committer | Binh-Minh Ribler <bmribler@hdfgroup.org> | 2019-09-03 16:00:29 (GMT) |
commit | 96dab622e3bbe75d85b0cef3ca2bd5288cf4ac32 (patch) | |
tree | 3bdc241e1d6866e1c6360af92bb6e57ef33ab177 /src/H5D.c | |
parent | daecf8f06d382cd34091c3ccc06c38fb81d9beb6 (diff) | |
download | hdf5-96dab622e3bbe75d85b0cef3ca2bd5288cf4ac32.zip hdf5-96dab622e3bbe75d85b0cef3ca2bd5288cf4ac32.tar.gz hdf5-96dab622e3bbe75d85b0cef3ca2bd5288cf4ac32.tar.bz2 |
Fixed error code and error messages
Tested on Jelly (very minor)
Diffstat (limited to 'src/H5D.c')
-rw-r--r-- | src/H5D.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1186,7 +1186,7 @@ H5Dget_chunk_info(hid_t dset_id, hid_t fspace_id, hsize_t chk_index, hsize_t *of /* Check range for chunk index */ if(chk_index >= nchunks) - HGOTO_ERROR(H5E_IO, H5E_DATASET, FAIL, "chunk index is out of range") + HGOTO_ERROR(H5E_DATASET, H5E_BADRANGE, FAIL, "chunk index is out of range") /* Call private function to get the chunk info given the chunk's index */ if(H5VL_dataset_optional(vol_obj, H5P_DATASET_XFER_DEFAULT, H5_REQUEST_NULL, H5VL_NATIVE_DATASET_GET_CHUNK_INFO_BY_IDX, fspace_id, chk_index, offset, filter_mask, addr, size) < 0) |