mirror of
https://github.com/kiwix/kiwix-tools.git
synced 2025-09-24 21:06:42 -04:00
+ avoid exiting if the library has no "local" books (so nothing to serve)
This commit is contained in:
parent
1a2deeac46
commit
3ef8bcf3f4
@ -472,7 +472,6 @@ int main(int argc, char **argv) {
|
||||
/* Check if the library is not empty (or only remote books)*/
|
||||
if (libraryManager.getBookCount(true, false)==0) {
|
||||
cerr << "The XML library file '" << libraryPath << "' is empty (or has only remote books)." << endl;
|
||||
exit(1);
|
||||
}
|
||||
} else {
|
||||
if (!libraryManager.addBookFromPath(zimPath, zimPath, "", false)) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user