summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDana Robinson <derobins@hdfgroup.org>2017-02-27 16:45:13 (GMT)
committerDana Robinson <derobins@hdfgroup.org>2017-04-05 06:26:20 (GMT)
commit2e295975b9c5fd4c845529aa2eacdb89eec4c172 (patch)
tree90cc68c5a13972a1f7d55e6af040214663cb8e49 /src
parent60bb3fd1108e2006a79b008d031a0f68a1e6b393 (diff)
downloadhdf5-2e295975b9c5fd4c845529aa2eacdb89eec4c172.zip
hdf5-2e295975b9c5fd4c845529aa2eacdb89eec4c172.tar.gz
hdf5-2e295975b9c5fd4c845529aa2eacdb89eec4c172.tar.bz2
Updated an error message in H5L.c to be more helpful.
Fixes HDFFV-10141.
Diffstat (limited to 'src')
-rw-r--r--src/H5L.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/H5L.c b/src/H5L.c
index b5c6240..f933e97 100644
--- a/src/H5L.c
+++ b/src/H5L.c
@@ -2351,9 +2351,11 @@ H5L_delete_cb(H5G_loc_t *grp_loc/*in*/, const char *name, const H5O_link_t *lnk,
if(name == NULL)
HGOTO_ERROR(H5E_SYM, H5E_NOTFOUND, FAIL, "name doesn't exist")
- /* Check for removing '.' */
+ /* Check for non-existent (NULL) link.
+ * Note that this can also occur when attempting to remove '.'
+ */
if(lnk == NULL)
- HGOTO_ERROR(H5E_SYM, H5E_CANTDELETE, FAIL, "can't delete self")
+ HGOTO_ERROR(H5E_SYM, H5E_CANTDELETE, FAIL, "callback link pointer is NULL")
/* Remove the link from the group */
if(H5G_obj_remove(grp_loc->oloc, grp_loc->path->full_path_r, name, udata->dxpl_id) < 0)