summaryrefslogtreecommitdiffstats
path: root/src/H5A.c
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2002-06-10 17:51:32 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2002-06-10 17:51:32 (GMT)
commit3ca52ffcc2fbd74447ce6e159e0df452389b812a (patch)
tree43c7e1b21cadb02d5367447f7a06017a05a66931 /src/H5A.c
parent3f225a14b7e4d29db0cf5bd99dd2387e651f419f (diff)
downloadhdf5-3ca52ffcc2fbd74447ce6e159e0df452389b812a.zip
hdf5-3ca52ffcc2fbd74447ce6e159e0df452389b812a.tar.gz
hdf5-3ca52ffcc2fbd74447ce6e159e0df452389b812a.tar.bz2
[svn-r5573] Purpose:
Bug fix (#620) Description: Change slightly misleading error message when creating attribute with same name as existing attribute to something a bit more clear. Platforms tested: FreeBSD 4.5 (sleipnir)
Diffstat (limited to 'src/H5A.c')
-rw-r--r--src/H5A.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/H5A.c b/src/H5A.c
index f95bb9b..1157e19 100644
--- a/src/H5A.c
+++ b/src/H5A.c
@@ -265,7 +265,7 @@ H5A_create(const H5G_entry_t *ent, const char *name, const H5T_t *type,
*/
if(HDstrcmp(found_attr.name,attr->name)==0) {
H5O_reset (H5O_ATTR, &found_attr);
- HGOTO_ERROR(H5E_ATTR, H5E_CANTCREATE, FAIL,
+ HGOTO_ERROR(H5E_ATTR, H5E_ALREADYEXISTS, FAIL,
"attribute already exists");
}
H5O_reset (H5O_ATTR, &found_attr);