From 5a0804b5c9eac426e2b0d690ae479caf8f89848e Mon Sep 17 00:00:00 2001 From: Dana Robinson Date: Wed, 26 Aug 2020 13:42:05 -0700 Subject: Adds helpful error messages to the HDFS VFD stubs. --- src/H5FDhdfs.c | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/src/H5FDhdfs.c b/src/H5FDhdfs.c index 4978d64..c604c9c 100644 --- a/src/H5FDhdfs.c +++ b/src/H5FDhdfs.c @@ -1760,17 +1760,29 @@ H5FD_hdfs_init(void) herr_t H5Pget_fapl_hdfs(hid_t fapl_id, H5FD_hdfs_fapl_t *fa_out) { + herr_t ret_value = FAIL; + FUNC_ENTER_API_NOINIT H5TRACE2("e", "i*x", fapl_id, fa_out); - FUNC_LEAVE_API_NOINIT(FAIL) + + HGOTO_ERROR(H5E_VFL, H5E_UNSUPPORTED, FAIL, "HDFS VFD not included in the HDF5 library") + +done: + FUNC_LEAVE_API_NOINIT(ret_value) } herr_t H5Pset_fapl_hdfs(hid_t fapl_id, H5FD_hdfs_fapl_t *fa) { + herr_t ret_value = FAIL; + FUNC_ENTER_API_NOINIT H5TRACE2("e", "i*x", fapl_id, fa); - FUNC_LEAVE_API_NOINIT(FAIL) + + HGOTO_ERROR(H5E_VFL, H5E_UNSUPPORTED, FAIL, "HDFS VFD not included in the HDF5 library") + +done: + FUNC_LEAVE_API_NOINIT(ret_value) } #endif /* H5_HAVE_LIBHDFS */ -- cgit v0.12