Cast axis_type to string prior to formatting

This commit is contained in:
Mark Shachkov
2022-01-27 14:46:21 +03:00
parent a72f248af6
commit c9b1bdaf00

View File

@@ -225,8 +225,8 @@ const axis_base &axes_metadata::get_axis(std::string_view name,
NVBENCH_THROW(std::runtime_error,
"Axis '{}' type mismatch (expected {}, actual {}).",
name,
type,
axis.get_type());
axis_type_to_string(type),
axis.get_type_as_string());
}
return axis;
}
@@ -240,8 +240,8 @@ axis_base &axes_metadata::get_axis(std::string_view name,
NVBENCH_THROW(std::runtime_error,
"Axis '{}' type mismatch (expected {}, actual {}).",
name,
type,
axis.get_type());
axis_type_to_string(type),
axis.get_type_as_string());
}
return axis;
}