H5E_PRINT1 prints the error stack for the current thread on the specified stream,
stream. Even if the error stack is empty, a one-line message will be printed:
HDF5-DIAG: Error detected in thread 0.
H5E_PRINT1 is a convenience function for H5E_WALK1 with a function that prints error messages. Users are encouraged to write their own more specific error handlers.