diff options
author | Pedro Vicente Nunes <pvn@hdfgroup.org> | 2008-01-02 20:45:33 (GMT) |
---|---|---|
committer | Pedro Vicente Nunes <pvn@hdfgroup.org> | 2008-01-02 20:45:33 (GMT) |
commit | 23c1eb4a6cdbc6fe782c8746eb40a7e54c8a7e42 (patch) | |
tree | bf4a08e295b54267f03064870556517352d6d707 | |
parent | 7e1d3904911acfe1f3d092c0e3de8d402b2896a7 (diff) | |
download | hdf5-23c1eb4a6cdbc6fe782c8746eb40a7e54c8a7e42.zip hdf5-23c1eb4a6cdbc6fe782c8746eb40a7e54c8a7e42.tar.gz hdf5-23c1eb4a6cdbc6fe782c8746eb40a7e54c8a7e42.tar.bz2 |
[svn-r14361] add a warning message in case a dataset cannot be created with modified DCPL
tested: linux
-rw-r--r-- | tools/h5repack/h5repack_copy.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/tools/h5repack/h5repack_copy.c b/tools/h5repack/h5repack_copy.c index 9a255b2..2504a96 100644 --- a/tools/h5repack/h5repack_copy.c +++ b/tools/h5repack/h5repack_copy.c @@ -526,7 +526,13 @@ int do_copy_objects(hid_t fidin, H5E_BEGIN_TRY { dset_out = H5Dcreate2(fidout, travt->objs[i].name, wtype_id, f_space_id, H5P_DEFAULT, dcpl_out, H5P_DEFAULT); } H5E_END_TRY; - if(dset_out == FAIL) { + + if(dset_out == FAIL) + { + if(options->verbose) + printf(" warning: could not create dataset <%s>. Applying original settings\n", + travt->objs[i].name); + if((dset_out = H5Dcreate2(fidout, travt->objs[i].name, wtype_id, f_space_id, H5P_DEFAULT, dcpl_id, H5P_DEFAULT)) < 0) goto error; apply_f = 0; |