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-02-27 16:45:13 (GMT)
commit847c285c61eeb11ab83f9624b680421bd06c6747 (patch)
treebff9168a2633eeffa5a25c2fa0b312a496bc45ea /src
parentc83faa4905c24f4c74653e8f4d279c732204d2d0 (diff)
downloadhdf5-847c285c61eeb11ab83f9624b680421bd06c6747.zip
hdf5-847c285c61eeb11ab83f9624b680421bd06c6747.tar.gz
hdf5-847c285c61eeb11ab83f9624b680421bd06c6747.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 9c81f98..8e59762 100644
--- a/src/H5L.c
+++ b/src/H5L.c
@@ -2292,9 +2292,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)