Skip to content

Commit

Permalink
fix: bug for loading features due to missing keys
Browse files Browse the repository at this point in the history
  • Loading branch information
alandtse committed Oct 16, 2024
1 parent 572631f commit c0552af
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/State.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ void State::Load(ConfigMode a_configMode, bool a_allowReload)
return true;
} catch (const nlohmann::json::parse_error& e) {
logger::warn("Error parsing json config file ({}) : {}\n", path, e.what());
i.close(); // Ensure the file is closed even on error
i.close(); // Ensure bool the file is closed even on error
return false;
}
};
Expand Down

0 comments on commit c0552af

Please sign in to comment.