diff options
author | Quincey Koziol <koziol@hdfgroup.org> | 2002-06-10 17:51:32 (GMT) |
---|---|---|
committer | Quincey Koziol <koziol@hdfgroup.org> | 2002-06-10 17:51:32 (GMT) |
commit | 3ca52ffcc2fbd74447ce6e159e0df452389b812a (patch) | |
tree | 43c7e1b21cadb02d5367447f7a06017a05a66931 | |
parent | 3f225a14b7e4d29db0cf5bd99dd2387e651f419f (diff) | |
download | hdf5-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)
-rw-r--r-- | src/H5A.c | 2 | ||||
-rw-r--r-- | src/H5E.c | 1 | ||||
-rw-r--r-- | src/H5Epublic.h | 1 |
3 files changed, 3 insertions, 1 deletions
@@ -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); @@ -76,6 +76,7 @@ static const H5E_minor_mesg_t H5E_minor_mesg_g[] = { {H5E_NOSPACE, "No space available for allocation"}, {H5E_CANTCOPY, "Unable to copy object"}, {H5E_CANTFREE, "Unable to free object"}, + {H5E_ALREADYEXISTS, "Object already exists"}, /* File accessability errors */ {H5E_FILEEXISTS, "File already exists"}, diff --git a/src/H5Epublic.h b/src/H5Epublic.h index bb62c1a..1b37f15 100644 --- a/src/H5Epublic.h +++ b/src/H5Epublic.h @@ -116,6 +116,7 @@ typedef enum H5E_minor_t { H5E_NOSPACE, /*no space available for allocation */ H5E_CANTCOPY, /*unable to copy object */ H5E_CANTFREE, /*unable to free object */ + H5E_ALREADYEXISTS, /*Object already exists */ /* File accessability errors */ H5E_FILEEXISTS, /*file already exists */ |