Skip to main content

combine_streams

Function combine_streams 

Source
pub fn combine_streams(stdout: &str, stderr: &str, exit_code: i32) -> String
Expand description

Join captured stdout and stderr for display/recovery. On failure (non-zero exit) with both streams present, a labeled delimiter separates them; success output keeps the plain stdout\nstderr shape (determinism, #498).