Update readFromString.cpp

Print the error to screen
This commit is contained in:
Kapandaria 2023-03-28 13:42:14 +03:00 committed by GitHub
parent 8190e061bc
commit 3a948b8a8e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -25,7 +25,7 @@ int main() {
const std::unique_ptr<Json::CharReader> reader(builder.newCharReader());
if (!reader->parse(rawJson.c_str(), rawJson.c_str() + rawJsonLength, &root,
&err)) {
std::cout << "error" << std::endl;
std::cout << "error: " << err << std::endl;
return EXIT_FAILURE;
}
}