Skip to content

Commit

Permalink
Correct error messages according review feedback.
Browse files Browse the repository at this point in the history
  • Loading branch information
vchoi-hdfgroup committed Oct 9, 2024
1 parent d49c906 commit 9e0af54
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/H5Fint.c
Original file line number Diff line number Diff line change
Expand Up @@ -3798,13 +3798,13 @@ H5F__start_swmr_write(H5F_t *f)
uint8_t version;

if (NULL == (oloc = H5O_get_loc(obj_ids[u])))
HGOTO_ERROR(H5E_SYM, H5E_NOTFOUND, FAIL, "object not found");
HGOTO_ERROR(H5E_FILE, H5E_CANTGET, FAIL, "H5O_get_loc() failed");

if (H5O_get_native_info(oloc, &ninfo, H5O_NATIVE_INFO_HDR) < 0)
HGOTO_ERROR(H5E_FILE, H5E_CANTGET, FAIL, "H5O_get_native__info failed");
HGOTO_ERROR(H5E_FILE, H5E_CANTGET, FAIL, "H5O_get_native_info() failed");

if (H5O_get_version_bound(f->shared->low_bound, &version) < 0)
HGOTO_ERROR(H5E_FILE, H5E_CANTGET, FAIL, "H5O_get_version_bound failed");
HGOTO_ERROR(H5E_FILE, H5E_CANTGET, FAIL, "H5O_get_version_bound() failed");

if (ninfo.hdr.version < version)
HGOTO_ERROR(H5E_FILE, H5E_BADVALUE, FAIL, "disallow opened objects below 1.10");
Expand Down

0 comments on commit 9e0af54

Please sign in to comment.