mirror of
https://github.com/PixlOne/logiops.git
synced 2025-07-13 12:52:42 +08:00
Merge pull request #346 from ckiee/config-invalid-enforce
logid: Fail on invalid Configurations
This commit is contained in:
commit
fbd915e201
@ -138,9 +138,9 @@ int main(int argc, char** argv) {
|
||||
// Read config
|
||||
try {
|
||||
config = std::make_shared<Configuration>(options.config_file);
|
||||
}
|
||||
catch (std::exception& e) {
|
||||
config = std::make_shared<Configuration>();
|
||||
} catch (std::exception &e) {
|
||||
logPrintf(ERROR, "%s", e.what());
|
||||
return EXIT_FAILURE;
|
||||
}
|
||||
|
||||
init_workers(config->workers.value_or(defaults::workers));
|
||||
|
Loading…
Reference in New Issue
Block a user