mirror of
https://github.com/open-source-parsers/jsoncpp.git
synced 2025-01-19 08:46:41 +01:00
json_reader throwRuntimeError return error details instead of hard-coded message
Signed-off-by: Evince <baneyue@gmail.com>
This commit is contained in:
parent
34bdbb58b4
commit
6b10ce8c0d
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user