Rewrite config file parser

I noticed it didn't work correctly in some cases...
This commit is contained in:
sfan5
2020-03-27 19:32:30 +01:00
parent 04b9dffb11
commit ecc2b31f78
2 changed files with 32 additions and 50 deletions

View File

@ -10,7 +10,7 @@ inline std::string read_setting_default(const std::string &name, std::istream &i
{
try {
return read_setting(name, is);
} catch(std::runtime_error &e) {
} catch(const std::runtime_error &e) {
return def;
}
}