summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorScot Breitenfeld <brtnfld@hdfgroup.org>2022-10-25 12:58:23 (GMT)
committerGitHub <noreply@github.com>2022-10-25 12:58:23 (GMT)
commit4e4c7cf66d87d65ddc42760585d5122c20d7466b (patch)
tree936f9ac52c583e563cc2875db0de9a1c99717ff7 /src
parent7997b53589ed5fd7967985a87c8f7f757b5e7030 (diff)
downloadhdf5-4e4c7cf66d87d65ddc42760585d5122c20d7466b.zip
hdf5-4e4c7cf66d87d65ddc42760585d5122c20d7466b.tar.gz
hdf5-4e4c7cf66d87d65ddc42760585d5122c20d7466b.tar.bz2
fixed error code returned for H5Aexits (#2180)
Diffstat (limited to 'src')
-rw-r--r--src/H5A.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/H5A.c b/src/H5A.c
index 5f637c8..834489b 100644
--- a/src/H5A.c
+++ b/src/H5A.c
@@ -2419,7 +2419,7 @@ H5Aexists(hid_t obj_id, const char *attr_name)
/* Synchronously check if an attribute exists */
exists = FALSE;
if (H5A__exists_api_common(obj_id, attr_name, &exists, NULL, NULL) < 0)
- HGOTO_ERROR(H5E_ATTR, H5E_CANTRENAME, FAIL, "can't synchronously rename attribute")
+ HGOTO_ERROR(H5E_ATTR, H5E_CANTGET, FAIL, "can't synchronously check if attribute exists")
/* Set return value */
ret_value = (htri_t)exists;
@@ -2454,7 +2454,7 @@ H5Aexists_async(const char *app_file, const char *app_func, unsigned app_line, h
/* Asynchronously check if an attribute exists */
if (H5A__exists_api_common(obj_id, attr_name, attr_exists, token_ptr, &vol_obj) < 0)
- HGOTO_ERROR(H5E_ATTR, H5E_CANTRENAME, FAIL, "can't asynchronously check if attribute exists")
+ HGOTO_ERROR(H5E_ATTR, H5E_CANTGET, FAIL, "can't asynchronously check if attribute exists")
/* If a token was created, add the token to the event set */
if (NULL != token)