Skip to content

Commit 9353ee6

Browse files
committed
Fix...
1 parent 7aeec08 commit 9353ee6

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

components/core/src/clp/ffi/ir_stream/Deserializer.hpp

+4-5
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414

1515
#include "../../ReaderInterface.hpp"
1616
#include "../../time_types.hpp"
17-
#include "../KeyValuePairLogEvent.hpp"
1817
#include "../SchemaTree.hpp"
1918
#include "decoding_methods.hpp"
2019
#include "ir_unit_deserialization_methods.hpp"
@@ -66,8 +65,8 @@ class Deserializer {
6665
/**
6766
* Deserializes the stream from the given reader up to and including the next log event IR unit.
6867
* @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.
7170
* @return std::errc::protocol_not_supported if the IR unit type is not supported.
7271
* @return std::errc::operation_not_permitted if the deserializer already reached the end of
7372
* 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
172171
}
173172

174173
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);
177176
}
178177

179178
auto const optional_ir_unit_type{get_ir_unit_type_from_tag(tag)};

0 commit comments

Comments
 (0)