CommandAdd: if nothingprocessor is used, empty pageData is not an error
This commit is contained in:
parent
9ae74b476a
commit
88fa60f7da
@ -69,7 +69,8 @@ AddFileResult CommandAdd::addFile(QString path)
|
|||||||
pageData = processor->process(Utils::readFile(absPath));
|
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;
|
Utils::error() << "Could not get any content for " << absPath << endl;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user