summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMohamad Chaarawi <chaarawi@hdfgroup.org>2016-03-09 15:03:16 (GMT)
committerMohamad Chaarawi <chaarawi@hdfgroup.org>2016-03-09 15:03:16 (GMT)
commit23e97565cfb9adf329315635fb58553b14670b47 (patch)
tree1cc0f246ac1ab09d4aad8902404134912c445c2d
parent5ced585e053ea1e7b591d0263b88fd18d0c047e5 (diff)
downloadhdf5-23e97565cfb9adf329315635fb58553b14670b47.zip
hdf5-23e97565cfb9adf329315635fb58553b14670b47.tar.gz
hdf5-23e97565cfb9adf329315635fb58553b14670b47.tar.bz2
[svn-r29372] minor error reporting fix.
-rw-r--r--src/H5S.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/H5S.c b/src/H5S.c
index 738a7da..2fab71a 100644
--- a/src/H5S.c
+++ b/src/H5S.c
@@ -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)