From 812078b3de0b8d6631c656be0a4480851fa85415 Mon Sep 17 00:00:00 2001 From: Michael Jackson Date: Wed, 29 Nov 2023 14:50:41 -0500 Subject: [PATCH] ENH: Cleanup warning messages for ReadTextDatArray and CreateDataArray Signed-off-by: Michael Jackson --- .../ComplexCore/src/ComplexCore/Filters/CreateDataArray.cpp | 3 ++- .../src/ComplexCore/Filters/ReadTextDataArrayFilter.cpp | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/Plugins/ComplexCore/src/ComplexCore/Filters/CreateDataArray.cpp b/src/Plugins/ComplexCore/src/ComplexCore/Filters/CreateDataArray.cpp index 689f97823c..1370c1f56c 100644 --- a/src/Plugins/ComplexCore/src/ComplexCore/Filters/CreateDataArray.cpp +++ b/src/Plugins/ComplexCore/src/ComplexCore/Filters/CreateDataArray.cpp @@ -134,7 +134,8 @@ IFilter::PreflightResult CreateDataArray::preflightImpl(const DataStructure& dat if(!useDims) { return MakePreflightErrorResult( - -78602, "The DataArray to be created is not within an AttributeMatrix, so the dimensions cannot be determined implicitly. Check Set Tuple Dimensions to set the dimensions"); + -78602, fmt::format("The DataArray to be created '{}'is not within an AttributeMatrix, so the dimensions cannot be determined implicitly. Check Set Tuple Dimensions to set the dimensions", + dataArrayPath.toString())); } else { diff --git a/src/Plugins/ComplexCore/src/ComplexCore/Filters/ReadTextDataArrayFilter.cpp b/src/Plugins/ComplexCore/src/ComplexCore/Filters/ReadTextDataArrayFilter.cpp index b0a2daae29..678a60bcc3 100644 --- a/src/Plugins/ComplexCore/src/ComplexCore/Filters/ReadTextDataArrayFilter.cpp +++ b/src/Plugins/ComplexCore/src/ComplexCore/Filters/ReadTextDataArrayFilter.cpp @@ -106,7 +106,8 @@ IFilter::PreflightResult ReadTextDataArrayFilter::preflightImpl(const DataStruct if(!useDims) { return MakePreflightErrorResult( - -77602, "The DataArray to be created is not within an AttributeMatrix, so the dimensions cannot be determined implicitly. Check Set Tuple Dimensions to set the dimensions"); + -78602, fmt::format("The DataArray to be created '{}'is not within an AttributeMatrix, so the dimensions cannot be determined implicitly. Check Set Tuple Dimensions to set the dimensions", + arrayPath.toString())); } else {