Make codebase consistent with design.md

This commit is contained in:
2025-08-17 17:00:23 -04:00
parent 1b1b875a3a
commit 9e397d19c9
11 changed files with 154 additions and 75 deletions

View File

@@ -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;