From 0e5a76a8f91654d970f92919380b32a22a781ac8 Mon Sep 17 00:00:00 2001 From: fangyunzhong Date: Mon, 15 Apr 2024 11:48:13 +0800 Subject: [PATCH] =?UTF-8?q?id=5Fdefined.json=E4=B8=ADrecord=E4=B8=BA?= =?UTF-8?q?=E7=A9=BA=E6=97=B6=EF=BC=8C=E6=AD=A3=E5=B8=B8=E6=89=A7=E8=A1=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: fangyunzhong --- src/id_defined_parser.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/id_defined_parser.cpp b/src/id_defined_parser.cpp index b3db750..9b79a47 100755 --- a/src/id_defined_parser.cpp +++ b/src/id_defined_parser.cpp @@ -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) {