minor semicolon typo. and fix error message

This commit is contained in:
2024-12-05 00:15:07 +01:00
parent b7337fc6c5
commit e5df929a9a
5 changed files with 16 additions and 16 deletions

View File

@@ -29,7 +29,7 @@ struct H5Handles {
datatype(dataset.getDataType())
{
if (dataspace.getSimpleExtentNdims() != rank) {
throw std::runtime_error(LOCATION + "Expected rank of " + dname + " dataset to be 1. Got " + std::to_string(rank));
throw std::runtime_error(LOCATION + "Expected rank of " + dname + " dataset to be " + std::to_string(rank) + ". Got " + std::to_string(dataspace.getSimpleExtentNdims()));
}
dims.resize(rank);
dataspace.getSimpleExtentDims(dims.data(), nullptr);