Skip to content

Commit

Permalink
Update readFromString.cpp (#1477)
Browse files Browse the repository at this point in the history
Print the error to screen

Co-authored-by: Jordan Bayles <bayles.jordan@gmail.com>
  • Loading branch information
gnudles and baylesj committed Sep 10, 2024
1 parent 31754ce commit 742c645
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion example/readFromString/readFromString.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}
Expand Down

0 comments on commit 742c645

Please sign in to comment.