This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user