projects
/
platform
/
upstream
/
jsoncpp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
34bdbb5
)
json_reader throwRuntimeError return error details instead of hard-coded message
author
Evince
<baneyue@gmail.com>
Tue, 27 Oct 2015 16:22:46 +0000
(
00:22
+0800)
committer
Evince
<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
patch
|
blob
|
history
diff --git
a/src/lib_json/json_reader.cpp
b/src/lib_json/json_reader.cpp
index
23e4607
..
2eae15d
100644
(file)
--- 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;
}