Make codebase consistent with design.md
This commit is contained in:
@@ -265,10 +265,10 @@ int main(int argc, char *argv[]) {
|
||||
std::vector<char> mutable_json(json_content.begin(), json_content.end());
|
||||
mutable_json.push_back('\0'); // Null terminate for safety
|
||||
|
||||
bool parse_success = parser.parse(commit_request, mutable_json.data(),
|
||||
mutable_json.size() - 1);
|
||||
auto parse_result = parser.parse(commit_request, mutable_json.data(),
|
||||
mutable_json.size() - 1);
|
||||
|
||||
if (!parse_success) {
|
||||
if (parse_result != CommitRequestParser::ParseResult::Success) {
|
||||
std::cerr << "Error: Failed to parse JSON" << std::endl;
|
||||
if (parser.has_parse_error()) {
|
||||
std::cerr << "Parse error: " << parser.get_parse_error() << std::endl;
|
||||
|
||||
Reference in New Issue
Block a user