summaryrefslogtreecommitdiffstats
path: root/src/H5R.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/H5R.c')
-rw-r--r--src/H5R.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/H5R.c b/src/H5R.c
index 274b69f..6535ebf 100644
--- a/src/H5R.c
+++ b/src/H5R.c
@@ -733,8 +733,11 @@ H5Rget_object_type(hid_t dataset, void *_ref)
"invalid reference pointer");
/* Get the object information */
- ret_value=H5R_get_object_type(dset,_ref);
-
+ if ((ret_value=H5R_get_object_type(dset,_ref))<0) {
+ HGOTO_ERROR(H5E_REFERENCE, H5E_CANTINIT, H5G_UNKNOWN,
+ "unable to determine object type");
+ }
+
done:
FUNC_LEAVE(ret_value);
} /* end H5Rget_object_type() */