mirror of
https://github.com/AlexandreRouma/SDRPlusPlus.git
synced 2025-07-09 18:45:22 +02:00
Fix exceptions referenced in #1287
This commit is contained in:
@ -36,8 +36,8 @@ void ConfigManager::load(json def, bool lock) {
|
||||
file >> conf;
|
||||
file.close();
|
||||
}
|
||||
catch (std::exception e) {
|
||||
flog::error("Config file '{0}' is corrupted, resetting it", path);
|
||||
catch (const std::exception& e) {
|
||||
flog::error("Config file '{}' is corrupted, resetting it: {}", path, e.what());
|
||||
conf = def;
|
||||
save(false);
|
||||
}
|
||||
|
Reference in New Issue
Block a user