Report array type when UnknownArrayHandle::ExtractComponent fails

Sneak this into an unrelated MR because I missed it in the last one.
This commit is contained in:
Kenneth Moreland 2021-08-05 16:34:36 -06:00
parent e1ac918bc7
commit 9ca0cd1f6c

@ -682,7 +682,7 @@ public:
if (!this->IsBaseComponentType<BaseComponentType>())
{
VTKM_LOG_CAST_FAIL(*this, ComponentArrayType);
throwFailedDynamicCast(vtkm::cont::TypeToString(*this),
throwFailedDynamicCast("UnknownArrayHandle with " + this->GetArrayTypeName(),
"component array of " + vtkm::cont::TypeToString<BaseComponentType>());
}