Hello, world!
HDF5-DIAG: Error detected in HDF5 (1.10.4) thread 139628433381440:
#000: ../../../src/H5F.c line 509 in H5Fopen(): unable to open file
major: File accessibilty
minor: Unable to open file
#001: ../../../src/H5Fint.c line 1400 in H5F__open(): unable to open file
major: File accessibilty
minor: Unable to open file
#002: ../../../src/H5Fint.c line 1546 in H5F_open(): unable to open file: time = Wed May 26 16:32:30 2021
, name = 'bob', tent_flags = 0
major: File accessibilty
minor: Unable to open file
#003: ../../../src/H5FD.c line 734 in H5FD_open(): open failed
major: Virtual File Layer
minor: Unable to initialize object
#004: ../../../src/H5FDsec2.c line 346 in H5FD_sec2_open(): unable to open file: name = 'bob', errno = 2, error message = 'No such file or directory', flags = 0, o_flags = 0
major: File accessibilty
minor: Unable to open file
Been there, done that, got soooooooo many T-shirts.
Curiously enough, while I've ignorantly bumbled around the hdf5 crate, taking silly amounts of time to understand all sorts of things, this particular issue never arose, because I had that guard in my code from the very first attempt, even if I couldn't tell you where I found it.
Can you point me to an example of this, or give me a keyword to search on?
The way the thing is written it's not a must-use -- either you don't use it and you get pummeled with diagnostics from the hdf5 code, or you do use it and you don't. Arguably, the function should take a boolean as an argument -- but it doesn't.