summaryrefslogtreecommitdiffstats
path: root/tools/h5dump/h5dump_ddl.c
diff options
context:
space:
mode:
authorAllen Byrne <byrn@hdfgroup.org>2012-03-05 19:33:30 (GMT)
committerAllen Byrne <byrn@hdfgroup.org>2012-03-05 19:33:30 (GMT)
commit386b3e971b91580fad6c97cbdf95219097945ddf (patch)
tree3a1c7efe4865291a2f829dcc1ed968fddec54fa9 /tools/h5dump/h5dump_ddl.c
parent058f9c205676a487d8fb37ff3874176eee7807d3 (diff)
downloadhdf5-386b3e971b91580fad6c97cbdf95219097945ddf.zip
hdf5-386b3e971b91580fad6c97cbdf95219097945ddf.tar.gz
hdf5-386b3e971b91580fad6c97cbdf95219097945ddf.tar.bz2
[svn-r22027] 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: local linux and jam
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 d00b9e8..be56c9b 100644
--- a/tools/h5dump/h5dump_ddl.c
+++ b/tools/h5dump/h5dump_ddl.c
@@ -1474,13 +1474,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 */