Skip to content

Commit

Permalink
json_reader throwRuntimeError return error details instead of hard-co…
Browse files Browse the repository at this point in the history
…ded message

Signed-off-by: Evince <[email protected]>
  • Loading branch information
EvinceMoi committed Oct 27, 2015
1 parent 34bdbb5 commit 6b10ce8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib_json/json_reader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2024,7 +2024,7 @@ std::istream& operator>>(std::istream& sin, Value& root) {
"Error from reader: %s",
errs.c_str());

throwRuntimeError("reader error");
throwRuntimeError(errs);
}
return sin;
}
Expand Down

0 comments on commit 6b10ce8

Please sign in to comment.