Skip to content

Commit

Permalink
config: do not require config gile
Browse files Browse the repository at this point in the history
fixes #109
  • Loading branch information
vaxerski committed Dec 14, 2023
1 parent b94f846 commit d7cc6da
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/config/ConfigManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ CConfigManager::CConfigManager() {
ifs.open(configPath);

if (!ifs.good()) {
Debug::log(CRIT, "Config file `%s` couldn't be opened.", configPath.c_str());
exit(1);
Debug::log(WARN, "Config file `%s` couldn't be opened. Running without a config!", configPath.c_str());
return;
}

std::string line = "";
Expand Down Expand Up @@ -42,8 +42,7 @@ CConfigManager::CConfigManager() {
}

if (!parseError.empty()) {
Debug::log(CRIT, "Exiting because of config parse errors!\n%s", parseError.c_str());
exit(1);
Debug::log(WARN, "Config parse error: \n%s\n\nRunning and ignoring errors...\n", parseError.c_str());
return;
}
}
Expand Down

0 comments on commit d7cc6da

Please sign in to comment.