From 6b10ce8c0d07ea07861e82f65f17d9fd6abd658d Mon Sep 17 00:00:00 2001 From: Evince Date: Wed, 28 Oct 2015 00:22:46 +0800 Subject: [PATCH] json_reader throwRuntimeError return error details instead of hard-coded message Signed-off-by: Evince --- src/lib_json/json_reader.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib_json/json_reader.cpp b/src/lib_json/json_reader.cpp index 23e4607..2eae15d 100644 --- a/src/lib_json/json_reader.cpp +++ b/src/lib_json/json_reader.cpp @@ -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; }