We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e7bac20 commit 0313e83Copy full SHA for 0313e83
include/jsoncons_ext/toon/toon_reader.hpp
@@ -202,14 +202,18 @@ class basic_toon_reader
202
{
203
std::error_code ec;
204
read(ec);
205
+ if (ec)
206
+ {
207
+ JSONCONS_THROW(ser_error(ec));
208
+ }
209
}
210
211
void read(std::error_code& ec)
212
213
parse_lines(ec);
214
if (ec)
215
- JSONCONS_THROW(ser_error(ec));
216
+ return;
217
218
219
test/CMakeLists.txt
@@ -206,6 +206,7 @@ add_executable(unit_tests
ubjson/src/encode_ubjson_tests.cpp
ubjson/src/ubjson_cursor_tests.cpp
ubjson/src/ubjson_encoder_tests.cpp
+ toon/src/toon_reader_tests.cpp
toon/src/encode_toon_tests.cpp
corelib/src/testmain.cpp
)
0 commit comments