summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDana Robinson <derobins@hdfgroup.org>2020-08-26 20:42:05 (GMT)
committerDana Robinson <derobins@hdfgroup.org>2020-08-26 20:42:05 (GMT)
commit5a0804b5c9eac426e2b0d690ae479caf8f89848e (patch)
treeb49f4721899adf309fbbe567ce5fb5b5f0e8499b
parentf542f5aa37dea0f8dc15c3a5d91b4d12eda5fcf2 (diff)
downloadhdf5-5a0804b5c9eac426e2b0d690ae479caf8f89848e.zip
hdf5-5a0804b5c9eac426e2b0d690ae479caf8f89848e.tar.gz
hdf5-5a0804b5c9eac426e2b0d690ae479caf8f89848e.tar.bz2
Adds helpful error messages to the HDFS VFD stubs.
-rw-r--r--src/H5FDhdfs.c16
1 files 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 */