Skip to content

Commit 6b10ce8

Browse files
committed
json_reader throwRuntimeError return error details instead of hard-coded message
Signed-off-by: Evince <[email protected]>
1 parent 34bdbb5 commit 6b10ce8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib_json/json_reader.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2024,7 +2024,7 @@ std::istream& operator>>(std::istream& sin, Value& root) {
20242024
"Error from reader: %s",
20252025
errs.c_str());
20262026

2027-
throwRuntimeError("reader error");
2027+
throwRuntimeError(errs);
20282028
}
20292029
return sin;
20302030
}

0 commit comments

Comments
 (0)