mirror of
https://github.com/kiwix/kiwix-tools.git
synced 2025-09-26 13:50:33 -04:00
+ small fix for windows
This commit is contained in:
parent
b58fccc15e
commit
ed8b56ff98
@ -477,16 +477,18 @@ int main(int argc, char **argv) {
|
|||||||
vector<string> libraryPaths = kiwix::split(libraryPath, ";");
|
vector<string> libraryPaths = kiwix::split(libraryPath, ";");
|
||||||
vector<string>::iterator itr;
|
vector<string>::iterator itr;
|
||||||
for ( itr = libraryPaths.begin(); itr != libraryPaths.end(); ++itr ) {
|
for ( itr = libraryPaths.begin(); itr != libraryPaths.end(); ++itr ) {
|
||||||
bool retVal = false;
|
if (!(*itr).empty()) {
|
||||||
try {
|
bool retVal = false;
|
||||||
retVal = libraryManager.readFile(*itr, true);
|
try {
|
||||||
} catch (...) {
|
retVal = libraryManager.readFile(*itr, true);
|
||||||
retVal = false;
|
} catch (...) {
|
||||||
}
|
retVal = false;
|
||||||
|
}
|
||||||
if (!retVal) {
|
|
||||||
cerr << "Unable to open the XML library file '" << *itr << "'." << endl;
|
if (!retVal) {
|
||||||
exit(1);
|
cerr << "Unable to open the XML library file '" << *itr << "'." << endl;
|
||||||
|
exit(1);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user