mirror of
https://github.com/hyprwm/hyprpaper.git
synced 2024-11-16 22:25:59 +01:00
parent
b94f84605d
commit
cdec32da63
1 changed files with 3 additions and 4 deletions
|
@ -12,8 +12,8 @@ CConfigManager::CConfigManager() {
|
||||||
ifs.open(configPath);
|
ifs.open(configPath);
|
||||||
|
|
||||||
if (!ifs.good()) {
|
if (!ifs.good()) {
|
||||||
Debug::log(CRIT, "Config file `%s` couldn't be opened.", configPath.c_str());
|
Debug::log(WARN, "Config file `%s` couldn't be opened. Running without a config!", configPath.c_str());
|
||||||
exit(1);
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
std::string line = "";
|
std::string line = "";
|
||||||
|
@ -42,8 +42,7 @@ CConfigManager::CConfigManager() {
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!parseError.empty()) {
|
if (!parseError.empty()) {
|
||||||
Debug::log(CRIT, "Exiting because of config parse errors!\n%s", parseError.c_str());
|
Debug::log(WARN, "Config parse error: \n%s\n\nRunning and ignoring errors...\n", parseError.c_str());
|
||||||
exit(1);
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue