mirror of
https://github.com/KingDuckZ/dindexer.git
synced 2025-02-21 12:34:56 +00:00
Fix wrong block of code
Backend plugin was not being initialized due to some copy paste error.
This commit is contained in:
parent
5e1dfe3749
commit
f0e67f1c97
1 changed files with 5 additions and 6 deletions
|
@ -74,13 +74,12 @@ int main (int parArgc, char* parArgv[]) {
|
||||||
|
|
||||||
dinlib::Settings settings;
|
dinlib::Settings settings;
|
||||||
try {
|
try {
|
||||||
if (din::parse_commandline(parArgc, parArgv, vm)) {
|
dinlib::load_settings(CONFIG_FILE_PATH, settings);
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
catch (const std::invalid_argument& err) {
|
catch (const std::runtime_error& err) {
|
||||||
std::cerr << err.what() << "\nUse --help for help" << std::endl;
|
std::cerr << "Can't load settings from " << CONFIG_FILE_PATH << ":\n";
|
||||||
return 2;
|
std::cerr << err.what() << '\n';
|
||||||
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool ignore_read_errors = (vm.count("ignore-errors") > 0);
|
bool ignore_read_errors = (vm.count("ignore-errors") > 0);
|
||||||
|
|
Loading…
Add table
Reference in a new issue