summaryrefslogtreecommitdiffstats
path: root/tools/h5dump/h5dump_ddl.c
diff options
context:
space:
mode:
authorAllen Byrne <byrn@hdfgroup.org>2012-03-12 17:23:29 (GMT)
committerAllen Byrne <byrn@hdfgroup.org>2012-03-12 17:23:29 (GMT)
commit5ffbfdee1e793a8e76eb0e7c54c5eb9844391539 (patch)
tree338e7b4ffeed2dc41407736d57c775893c660bd7 /tools/h5dump/h5dump_ddl.c
parente6efdf96207781d874963243478d910d0a073ffc (diff)
downloadhdf5-5ffbfdee1e793a8e76eb0e7c54c5eb9844391539.zip
hdf5-5ffbfdee1e793a8e76eb0e7c54c5eb9844391539.tar.gz
hdf5-5ffbfdee1e793a8e76eb0e7c54c5eb9844391539.tar.bz2
[svn-r22043] HDFFV-7839: Dangling link should not display error
If a link is specified on the command with the -d option, call the handle_links function on error from the H5Dopen command. Updated test file results with error stack when link not found. Tested: trunk
Diffstat (limited to 'tools/h5dump/h5dump_ddl.c')
-rw-r--r--tools/h5dump/h5dump_ddl.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/tools/h5dump/h5dump_ddl.c b/tools/h5dump/h5dump_ddl.c
index 89000c1..b0136c8 100644
--- a/tools/h5dump/h5dump_ddl.c
+++ b/tools/h5dump/h5dump_ddl.c
@@ -1460,13 +1460,7 @@ handle_datasets(hid_t fid, const char *dset, void *data, int pe, const char *dis
if((dsetid = H5Dopen2(fid, dset, H5P_DEFAULT)) < 0) {
if (pe) {
- HDfprintf(rawoutstream, "\n");
- begin_obj(h5tools_dump_header_format->datasetbegin, real_name, h5tools_dump_header_format->datasetblockbegin);
- HDfprintf(rawoutstream, "\n");
- indentation(COL);
- error_msg("unable to open dataset \"%s\"\n", real_name);
- end_obj(h5tools_dump_header_format->datasetend, h5tools_dump_header_format->datasetblockend);
- h5tools_setstatus(EXIT_FAILURE);
+ handle_links(fid, dset, data, pe, display_name);
}
return;
} /* end if */