diff --git a/cli/commandadd.cpp b/cli/commandadd.cpp index 8290d21..b2f2079 100644 --- a/cli/commandadd.cpp +++ b/cli/commandadd.cpp @@ -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; }