diff --git a/src/server/kiwix-serve.cpp b/src/server/kiwix-serve.cpp index 9b905a1..38d5b2c 100644 --- a/src/server/kiwix-serve.cpp +++ b/src/server/kiwix-serve.cpp @@ -437,7 +437,7 @@ int main(int argc, char **argv) { new kiwix::CluceneSearcher(indexPath); indexType = kiwix::CLUCENE; } catch (...) { - cerr << "Unable to open the search index '" << zimPath << "' neither with the Xapian nor with CLucene." << endl; + cerr << "Unable to open the search index '" << indexPath << "' neither with the Xapian nor with CLucene." << endl; exit(1); } } @@ -490,7 +490,7 @@ int main(int argc, char **argv) { } hasSearchIndex = true; } catch (...) { - cerr << "Unable to open the search index '" << zimPath << "'." << endl; + cerr << "Unable to open the search index '" << indexPath << "'." << endl; } if (hasSearchIndex) {