fix json file format.

pull/105/head
Apex Liu 2017-10-31 22:25:53 +08:00
parent e075dcc690
commit 70a5e7e452
3 changed files with 4 additions and 4 deletions

View File

@ -58,7 +58,7 @@
"name": "crt", "name": "crt",
"display": "SecureCRT", "display": "SecureCRT",
"app": "", "app": "",
"cmdline": "/T /N \"TP#telnet://{real_ip}\" /ARG {user_name} /SCRIPT \"{assist_tools_path}\securecrt-telnet.vbs\" /TELNET {host_ip} {host_port}" "cmdline": "/T /N \"TP#telnet://{real_ip}\" /ARG {user_name} /SCRIPT \"{assist_tools_path}\\securecrt-telnet.vbs\" /TELNET {host_ip} {host_port}"
}, },
{ {
"name": "other", "name": "other",
@ -67,5 +67,5 @@
"cmdline": "" "cmdline": ""
} }
] ]
}, }
} }

View File

@ -44,7 +44,7 @@ bool TsCfg::_load(const ex_astr& str_json) {
Json::Reader jreader; Json::Reader jreader;
if (!jreader.parse(str_json.c_str(), m_root)) { if (!jreader.parse(str_json.c_str(), m_root)) {
EXLOGE("can not parse new config data, not in json format?\n"); EXLOGE("can not parse new config data, not in json format? %s\n", jreader.getFormattedErrorMessages().c_str());
return false; return false;
} }

File diff suppressed because one or more lines are too long