Skip to content

Commit

Permalink
fixup: improve error message.
Browse files Browse the repository at this point in the history
  • Loading branch information
1uc committed May 23, 2024
1 parent af025e7 commit 93670a6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions include/highfive/xtensor.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ struct xtensor_inspector_base {

static hdf5_type* data(type& val) {
if (!is_trivially_copyable) {
throw DataSetException("Invalid used of `inspector<xarray>::data`.");
throw DataSetException("Invalid used of `inspector<XTensor>::data`.");
}

if (val.size() == 0) {
Expand All @@ -76,7 +76,7 @@ struct xtensor_inspector_base {

static const hdf5_type* data(const type& val) {
if (!is_trivially_copyable) {
throw DataSetException("Invalid used of `inspector<xarray>::data`.");
throw DataSetException("Invalid used of `inspector<XTensor>::data`.");
}

if (val.size() == 0) {
Expand Down

0 comments on commit 93670a6

Please sign in to comment.