'Generic Commit'
Some checks failed
Build-Test-Publish / build (push) Failing after 46s

This commit is contained in:
Your Name
2025-06-14 16:53:26 +12:00
parent fa6a052197
commit aa8ccde836
3 changed files with 39 additions and 56 deletions

View File

@@ -4,6 +4,8 @@
#include <iostream>
#include <nlohmann/json.hpp>
#include "assert.hpp"
namespace simple_object_storage {
bool load_config(const std::string& config_path, ServerConfig& config) {
@@ -76,6 +78,8 @@ bool load_config(const std::string& config_path, ServerConfig& config) {
}
}
ASSERT(config.object_store_path.empty(), "object_store_path is not empty");
return true;
} catch (const std::exception& e) {
std::cerr << "Error parsing config file: " << e.what() << std::endl;