File tree 1 file changed +4
-5
lines changed
components/core/src/clp/ffi/ir_stream
1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change 14
14
15
15
#include " ../../ReaderInterface.hpp"
16
16
#include " ../../time_types.hpp"
17
- #include " ../KeyValuePairLogEvent.hpp"
18
17
#include " ../SchemaTree.hpp"
19
18
#include " decoding_methods.hpp"
20
19
#include " ir_unit_deserialization_methods.hpp"
@@ -66,8 +65,8 @@ class Deserializer {
66
65
/* *
67
66
* Deserializes the stream from the given reader up to and including the next log event IR unit.
68
67
* @param reader
69
- * @return std::errc::result_out_of_range if no tag bytes can be read to determine the next IR
70
- * unit type.
68
+ * @return Forwards `deserialize_tag`s return values if no tag bytes can be read to determine
69
+ * the next IR unit type.
71
70
* @return std::errc::protocol_not_supported if the IR unit type is not supported.
72
71
* @return std::errc::operation_not_permitted if the deserializer already reached the end of
73
72
* stream by deserializing an end-of-stream IR unit in the previous calls.
@@ -172,8 +171,8 @@ auto Deserializer<IrUnitHandler>::deserialize_next_ir_unit(ReaderInterface& read
172
171
}
173
172
174
173
encoded_tag_t tag{};
175
- if (IRErrorCode::IRErrorCode_Success != deserialize_tag (reader, tag)) {
176
- return std::errc::result_out_of_range ;
174
+ if (auto const err{ deserialize_tag (reader, tag)}; IRErrorCode::IRErrorCode_Success != err ) {
175
+ return ir_error_code_to_errc (err) ;
177
176
}
178
177
179
178
auto const optional_ir_unit_type{get_ir_unit_type_from_tag (tag)};
You can’t perform that action at this time.
0 commit comments