json_reader throwRuntimeError return error details instead of hard-coded message

Signed-off-by: Evince <baneyue@gmail.com>
This commit is contained in:
Evince 2015-10-28 00:22:46 +08:00
parent 34bdbb58b4
commit 6b10ce8c0d

View File

@ -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;
}