Skip to content

Commit

Permalink
Print out last HD5 error on writing
Browse files Browse the repository at this point in the history
  • Loading branch information
spinicist committed Apr 4, 2022
1 parent 1315a1f commit 22c5c58
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/io/hd5.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,7 @@ void store_tensor(
status = H5Sclose(space);
status = H5Dclose(dset);
if (status) {
Log::Fail(
FMT_STRING("Could not write tensor {} into handle {}, code: {}"), name, parent, status);
Log::Fail(FMT_STRING("Writing Tensor {}: Error {}"), name, HD5::GetError());
} else {
Log::Debug(FMT_STRING("Wrote tensor: {}"), name);
}
Expand Down

0 comments on commit 22c5c58

Please sign in to comment.