1
0
Fork 0
mirror of https://github.com/KingDuckZ/dindexer.git synced 2025-02-20 12:14:55 +00:00

Fix wrong block of code

Backend plugin was not being initialized due to some copy paste error.
This commit is contained in:
King_DuckZ 2016-06-03 21:50:45 +02:00
parent 5e1dfe3749
commit f0e67f1c97

View file

@ -74,13 +74,12 @@ int main (int parArgc, char* parArgv[]) {
dinlib::Settings settings;
try {
if (din::parse_commandline(parArgc, parArgv, vm)) {
return 0;
}
dinlib::load_settings(CONFIG_FILE_PATH, settings);
}
catch (const std::invalid_argument& err) {
std::cerr << err.what() << "\nUse --help for help" << std::endl;
return 2;
catch (const std::runtime_error& err) {
std::cerr << "Can't load settings from " << CONFIG_FILE_PATH << ":\n";
std::cerr << err.what() << '\n';
return 1;
}
bool ignore_read_errors = (vm.count("ignore-errors") > 0);