json_reader throwRuntimeError return error details instead of hard-coded message
authorEvince <baneyue@gmail.com>
Tue, 27 Oct 2015 16:22:46 +0000 (00:22 +0800)
committerEvince <baneyue@gmail.com>
Tue, 27 Oct 2015 16:22:46 +0000 (00:22 +0800)
Signed-off-by: Evince <baneyue@gmail.com>
src/lib_json/json_reader.cpp

index 23e4607..2eae15d 100644 (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;
 }