CommandAdd: if nothingprocessor is used, empty pageData is not an error
Tento commit je obsažen v:
rodič
6ba1147d11
revize
8c018a76f5
@ -56,7 +56,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;
|
||||
}
|
||||
|
Načítá se…
Odkázat v novém úkolu
Zablokovat Uživatele