!146 id_defined.json中record为空时正常执行

Merge pull request !146 from fyz1019/master
This commit is contained in:
openharmony_ci
2024-04-15 14:24:58 +00:00
committed by Gitee
+2 -2
View File
@@ -103,9 +103,9 @@ uint32_t IdDefinedParser::Init(const string &filePath, bool isSystem)
return RESTOOL_ERROR;
}
if (cJSON_GetArraySize(recordNode) == 0) {
cerr << "Error: 'record' node is empty, please check the JSON file.";
cerr << "Warning: 'record' node is empty, please check the JSON file.";
cerr << NEW_LINE_PATH << filePath << endl;
return RESTOOL_ERROR;
return RESTOOL_SUCCESS;
}
int64_t startSysId = 0;
if (isSystem) {