提交 e46e6b80 编写于 作者: G goerzh

fix json parse exception

上级 e0afed79
......@@ -192,7 +192,14 @@ int main(int argc, char **argv) {
if (strLine.empty()) {
continue;
}
json j = json::parse(strLine);
json j;
try {
j = json::parse(strLine);
}catch (...) {
remove(fileName.c_str());
continue;
}
UpstreamSegment request;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册