diff options
author | Mohamad Chaarawi <chaarawi@hdfgroup.org> | 2016-03-09 15:03:16 (GMT) |
---|---|---|
committer | Mohamad Chaarawi <chaarawi@hdfgroup.org> | 2016-03-09 15:03:16 (GMT) |
commit | 23e97565cfb9adf329315635fb58553b14670b47 (patch) | |
tree | 1cc0f246ac1ab09d4aad8902404134912c445c2d | |
parent | 5ced585e053ea1e7b591d0263b88fd18d0c047e5 (diff) | |
download | hdf5-23e97565cfb9adf329315635fb58553b14670b47.zip hdf5-23e97565cfb9adf329315635fb58553b14670b47.tar.gz hdf5-23e97565cfb9adf329315635fb58553b14670b47.tar.bz2 |
[svn-r29372] minor error reporting fix.
-rw-r--r-- | src/H5S.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -37,7 +37,7 @@ /* Local Macros */ /****************/ -/* Version of datatype encoding */ +/* Version of dataspace encoding */ #define H5S_ENCODE_VERSION 0 @@ -1550,7 +1550,7 @@ H5Sencode(hid_t obj_id, void *buf, size_t *nalloc) HGOTO_ERROR(H5E_ARGS, H5E_BADTYPE, FAIL, "not a dataspace") if(H5S_encode(dspace, (unsigned char **)&buf, nalloc)<0) - HGOTO_ERROR(H5E_DATATYPE, H5E_CANTENCODE, FAIL, "can't encode datatype") + HGOTO_ERROR(H5E_DATASPACE, H5E_CANTENCODE, FAIL, "can't encode dataspace") done: FUNC_LEAVE_API(ret_value) |