Skip to content

Commit

Permalink
WriteASCIIData filter should have unique error codes.
Browse files Browse the repository at this point in the history
Part of a fix for a failing unit test.

Signed-off-by: Michael Jackson <[email protected]>
  • Loading branch information
imikejackson committed Feb 9, 2019
1 parent b06a467 commit e4eaca5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Source/SIMPLib/CoreFilters/WriteASCIIData.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ template <typename TInputType> class WriteASCIIDataPrivate
if(!file.open(QIODevice::WriteOnly | QIODevice::Text))
{
QString ss = QObject::tr("The output file could not be opened: '%1'").arg(outputFile);
filter->setErrorCondition(-11008);
filter->setErrorCondition(-11012);
filter->notifyErrorMessage(filter->getHumanLabel(), ss, filter->getErrorCondition());
return;
}
Expand Down Expand Up @@ -363,7 +363,7 @@ void WriteASCIIData::execute()
if(m_SelectedDataArrayPaths.count() != m_SelectedWeakPtrVector.count())
{
QString ss = QObject::tr("The number of selected Attribute Arrays does not equal the number of internal weak pointers");
setErrorCondition(-11008);
setErrorCondition(-11010);
notifyErrorMessage(getHumanLabel(), ss, getErrorCondition());
return;
}
Expand Down Expand Up @@ -555,7 +555,7 @@ void WriteASCIIData::writeStringArray(const IDataArray::Pointer& inputData, cons
if(!file.open(QIODevice::WriteOnly | QIODevice::Text))
{
QString ss = QObject::tr("The output file could not be opened: '%1'").arg(outputFile);
setErrorCondition(-11008);
setErrorCondition(-11011);
notifyErrorMessage(getHumanLabel(), ss, getErrorCondition());
return;
}
Expand Down

0 comments on commit e4eaca5

Please sign in to comment.