martinzink commented on code in PR #2246:
URL: https://github.com/apache/nifi-minifi-cpp/pull/2246#discussion_r3881643956


##########
minifi_rust/extensions/minifi_rs_playground/src/processors/asciify_german.rs:
##########
@@ -57,8 +56,8 @@ impl FlowFileStreamTransform for AsciifyGerman {
                 0xC3 => {
                     let mut next = [0u8; 1];
                     if input_stream.read(&mut next)? == 0 {
-                        // Truncated multi-byte sequence at EOF — treat as 
malformed input.
-                        return 
Ok(TransformStreamResult::route_without_changes(&FAILURE));
+                        Err(MinifiError::custom("Truncated multi-byte sequence 
at EOF"))

Review Comment:
   the route_err_to_failure()? shortcuts it to become a return



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to