Commit de5bdcb7 authored by Ken Martin's avatar Ken Martin
Browse files

do not produce error message during abort

The XML Reader wss sometimes producing error output
when the user requested the read be aborted.  This change
makes the abort more silent.
parent 5570ba65
Pipeline #7884 passed with stage
......@@ -443,10 +443,13 @@ int vtkXMLDataReader::ReadPieceData()
// Read the array.
if (!this->ReadArrayForPoints(eNested, pointData->GetAbstractArray(a++)))
{
vtkErrorMacro("Cannot read point data array \""
<< pointData->GetArray(a-1)->GetName() << "\" from "
<< ePointData->GetName() << " in piece " << this->Piece
<< ". The data array in the element may be too short.");
if (!this->AbortExecute)
{
vtkErrorMacro("Cannot read point data array \""
<< pointData->GetArray(a-1)->GetName() << "\" from "
<< ePointData->GetName() << " in piece " << this->Piece
<< ". The data array in the element may be too short.");
}
return 0;
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment