mirror of
https://github.com/HDFGroup/hdf5.git
synced 2025-02-23 16:20:57 +08:00
[svn-r29372] minor error reporting fix.
This commit is contained in:
parent
5ced585e05
commit
23e97565cf
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user