pub fn safe_print(content: &str) -> Result<(), String>Expand description
Safe print function that handles broken pipe errors gracefully
When output is piped to commands like head that close early,
subsequent writes will fail with a broken pipe error. This is
expected behavior and should not cause the program to panic.