Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix error return types in H5Rdeprec.c #4722

Merged
merged 1 commit into from
Aug 16, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions src/H5Rdeprec.c
Original file line number Diff line number Diff line change
Expand Up @@ -267,12 +267,12 @@ H5Rget_obj_type1(hid_t id, H5R_type_t ref_type, const void *ref)

/* Check if using native VOL connector */
if (H5VL_object_is_native(vol_obj, &is_native_vol_obj) < 0)
HGOTO_ERROR(H5E_REFERENCE, H5E_CANTGET, FAIL,
HGOTO_ERROR(H5E_REFERENCE, H5E_CANTGET, H5G_UNKNOWN,
"can't determine if VOL object is native connector object");

/* Must use native VOL connector for this operation */
if (!is_native_vol_obj)
HGOTO_ERROR(H5E_REFERENCE, H5E_VOL, FAIL,
HGOTO_ERROR(H5E_REFERENCE, H5E_VOL, H5G_UNKNOWN,
"H5Rget_obj_type1 is only meant to be used with the native VOL connector");

/* Get object type */
Expand Down Expand Up @@ -341,12 +341,12 @@ H5Rdereference1(hid_t obj_id, H5R_type_t ref_type, const void *ref)

/* Check if using native VOL connector */
if (H5VL_object_is_native(vol_obj, &is_native_vol_obj) < 0)
HGOTO_ERROR(H5E_REFERENCE, H5E_CANTGET, FAIL,
HGOTO_ERROR(H5E_REFERENCE, H5E_CANTGET, H5I_INVALID_HID,
"can't determine if VOL object is native connector object");

/* Must use native VOL connector for this operation */
if (!is_native_vol_obj)
HGOTO_ERROR(H5E_REFERENCE, H5E_VOL, FAIL,
HGOTO_ERROR(H5E_REFERENCE, H5E_VOL, H5I_INVALID_HID,
"H5Rdereference1 is only meant to be used with the native VOL connector");

/* Get object type */
Expand Down Expand Up @@ -614,12 +614,12 @@ H5Rdereference2(hid_t obj_id, hid_t oapl_id, H5R_type_t ref_type, const void *re

/* Check if using native VOL connector */
if (H5VL_object_is_native(vol_obj, &is_native_vol_obj) < 0)
HGOTO_ERROR(H5E_REFERENCE, H5E_CANTGET, FAIL,
HGOTO_ERROR(H5E_REFERENCE, H5E_CANTGET, H5I_INVALID_HID,
"can't determine if VOL object is native connector object");

/* Must use native VOL connector for this operation */
if (!is_native_vol_obj)
HGOTO_ERROR(H5E_REFERENCE, H5E_VOL, FAIL,
HGOTO_ERROR(H5E_REFERENCE, H5E_VOL, H5I_INVALID_HID,
"H5Rdereference2 is only meant to be used with the native VOL connector");

/* Get object type */
Expand Down Expand Up @@ -694,7 +694,7 @@ H5Rget_region(hid_t id, H5R_type_t ref_type, const void *ref)
"can't query if file uses native VOL connector");

if (!is_native_vol_obj)
HGOTO_ERROR(H5E_REFERENCE, H5E_VOL, FAIL,
HGOTO_ERROR(H5E_REFERENCE, H5E_VOL, H5I_INVALID_HID,
"H5Rget_region is only meant to be used with the native VOL connector");

/* Get object type */
Expand Down
Loading