CommandAdd: if nothingprocessor is used, empty pageData is not an error

Šī revīzija ir iekļauta:
Albert S. 2019-04-10 19:00:28 +02:00
vecāks 9ae74b476a
revīzija 88fa60f7da

Parādīt failu

@ -69,7 +69,8 @@ AddFileResult CommandAdd::addFile(QString path)
pageData = processor->process(Utils::readFile(absPath));
}
if(pageData.isEmpty())
//Could happen if a file corrupted for example
if(pageData.isEmpty() && processor != nothingProcessor)
{
Utils::error() << "Could not get any content for " << absPath << endl;
}