summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorScot Breitenfeld <brtnfld@hdfgroup.org>2022-12-02 20:24:43 (GMT)
committerGitHub <noreply@github.com>2022-12-02 20:24:43 (GMT)
commitc1c131260a0e48f9eb629765dc3d11d53eff0980 (patch)
tree242c0841c25c9aa49ad944e43161a1645782b778
parent24700e8f0607e9a3782c843528e2c5a892d4d6f6 (diff)
downloadhdf5-c1c131260a0e48f9eb629765dc3d11d53eff0980.zip
hdf5-c1c131260a0e48f9eb629765dc3d11d53eff0980.tar.gz
hdf5-c1c131260a0e48f9eb629765dc3d11d53eff0980.tar.bz2
return error message related to calling API (#2276)
-rw-r--r--src/H5A.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/H5A.c b/src/H5A.c
index 057d0d7..439654b 100644
--- a/src/H5A.c
+++ b/src/H5A.c
@@ -2534,7 +2534,7 @@ H5Aexists_by_name(hid_t loc_id, const char *obj_name, const char *attr_name, hid
/* Synchronously check if an attribute exists */
exists = FALSE;
if (H5A__exists_by_name_api_common(loc_id, obj_name, attr_name, &exists, lapl_id, 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 determine if attribute exists by name")
/* Set return value */
ret_value = (htri_t)exists;
@@ -2572,7 +2572,7 @@ H5Aexists_by_name_async(const char *app_file, const char *app_func, unsigned app
/* Asynchronously check if an attribute exists */
if (H5A__exists_by_name_api_common(loc_id, obj_name, attr_name, attr_exists, lapl_id, token_ptr,
&vol_obj) < 0)
- HGOTO_ERROR(H5E_ATTR, H5E_CANTRENAME, FAIL, "can't asynchronously rename attribute")
+ HGOTO_ERROR(H5E_ATTR, H5E_CANTGET, FAIL, "can't asynchronously determine if attribute exists by name")
/* If a token was created, add the token to the event set */
if (NULL != token)